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;
}
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;
}
Aggregations