use of org.ovirt.engine.api.v3.types.V3GraphicsConsoles in project ovirt-engine by oVirt.
the class V3GraphicsConsolesInAdapter method adapt.
@Override
public GraphicsConsoles adapt(V3GraphicsConsoles from) {
GraphicsConsoles to = new GraphicsConsoles();
if (from.isSetActions()) {
to.setActions(adaptIn(from.getActions()));
}
if (from.isSetActive()) {
to.setActive(from.getActive());
}
if (from.isSetSize()) {
to.setSize(from.getSize());
}
if (from.isSetTotal()) {
to.setTotal(from.getTotal());
}
to.getGraphicsConsoles().addAll(adaptIn(from.getGraphicsConsoles()));
return to;
}
use of org.ovirt.engine.api.v3.types.V3GraphicsConsoles in project ovirt-engine by oVirt.
the class V3GraphicsConsolesOutAdapter method adapt.
@Override
public V3GraphicsConsoles adapt(GraphicsConsoles from) {
V3GraphicsConsoles to = new V3GraphicsConsoles();
if (from.isSetActions()) {
to.setActions(adaptOut(from.getActions()));
}
if (from.isSetActive()) {
to.setActive(from.getActive());
}
if (from.isSetSize()) {
to.setSize(from.getSize());
}
if (from.isSetTotal()) {
to.setTotal(from.getTotal());
}
to.getGraphicsConsoles().addAll(adaptOut(from.getGraphicsConsoles()));
return to;
}
Aggregations