Search in sources :

Example 1 with V3GraphicsConsoles

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;
}
Also used : V3GraphicsConsoles(org.ovirt.engine.api.v3.types.V3GraphicsConsoles) GraphicsConsoles(org.ovirt.engine.api.model.GraphicsConsoles)

Example 2 with V3GraphicsConsoles

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;
}
Also used : V3GraphicsConsoles(org.ovirt.engine.api.v3.types.V3GraphicsConsoles)

Aggregations

V3GraphicsConsoles (org.ovirt.engine.api.v3.types.V3GraphicsConsoles)2 GraphicsConsoles (org.ovirt.engine.api.model.GraphicsConsoles)1