Search in sources :

Example 1 with V3Sessions

use of org.ovirt.engine.api.v3.types.V3Sessions in project ovirt-engine by oVirt.

the class V3SessionsOutAdapter method adapt.

@Override
public V3Sessions adapt(Sessions from) {
    V3Sessions to = new V3Sessions();
    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.getSessions().addAll(adaptOut(from.getSessions()));
    return to;
}
Also used : V3Sessions(org.ovirt.engine.api.v3.types.V3Sessions)

Example 2 with V3Sessions

use of org.ovirt.engine.api.v3.types.V3Sessions in project ovirt-engine by oVirt.

the class V3SessionsInAdapter method adapt.

@Override
public Sessions adapt(V3Sessions from) {
    Sessions to = new Sessions();
    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.getSessions().addAll(adaptIn(from.getSessions()));
    return to;
}
Also used : V3Sessions(org.ovirt.engine.api.v3.types.V3Sessions) Sessions(org.ovirt.engine.api.model.Sessions)

Aggregations

V3Sessions (org.ovirt.engine.api.v3.types.V3Sessions)2 Sessions (org.ovirt.engine.api.model.Sessions)1