com.testdroid.api.model.APIUserDeviceTimeSummary Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testdroid-api Show documentation
Show all versions of testdroid-api Show documentation
The Testdroid API library for Java
package com.testdroid.api.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.testdroid.api.APIEntity;
/**
* @author Adrian Zybala
*/
@JsonIgnoreProperties("id")
public class APIUserDeviceTimeSummary extends APIEntity {
private Long totalDeviceTime;
private Long inspectorDeviceTime;
private Long automaticDeviceTime;
private Long freeDeviceTime;
private Long periodStart;
private Long periodEnd;
public APIUserDeviceTimeSummary() {
}
public APIUserDeviceTimeSummary(
Long inspectorDeviceTime, Long automaticDeviceTime, Long freeDeviceTime) {
this.totalDeviceTime = inspectorDeviceTime + automaticDeviceTime + freeDeviceTime;
this.inspectorDeviceTime = inspectorDeviceTime;
this.automaticDeviceTime = automaticDeviceTime;
this.freeDeviceTime = freeDeviceTime;
}
public Long getTotalDeviceTime() {
return totalDeviceTime;
}
public void setTotalDeviceTime(Long totalDeviceTime) {
this.totalDeviceTime = totalDeviceTime;
}
public Long getInspectorDeviceTime() {
return inspectorDeviceTime;
}
public void setInspectorDeviceTime(Long inspectorDeviceTime) {
this.inspectorDeviceTime = inspectorDeviceTime;
}
public Long getAutomaticDeviceTime() {
return automaticDeviceTime;
}
public void setAutomaticDeviceTime(Long automaticDeviceTime) {
this.automaticDeviceTime = automaticDeviceTime;
}
public Long getPeriodStart() {
return periodStart;
}
public Long getPeriodEnd() {
return periodEnd;
}
public void setPeriodEnd(Long periodEnd) {
this.periodEnd = periodEnd;
}
public void setPeriodStart(Long periodStart) {
this.periodStart = periodStart;
}
public Long getFreeDeviceTime() {
return freeDeviceTime;
}
public void setFreeDeviceTime(Long freeDeviceTime) {
this.freeDeviceTime = freeDeviceTime;
}
@Override
@JsonIgnore
protected void clone(T from) {
APIUserDeviceTimeSummary apiUserDeviceTimeSummary = (APIUserDeviceTimeSummary) from;
cloneBase(from);
this.totalDeviceTime = apiUserDeviceTimeSummary.totalDeviceTime;
this.inspectorDeviceTime = apiUserDeviceTimeSummary.inspectorDeviceTime;
this.automaticDeviceTime = apiUserDeviceTimeSummary.automaticDeviceTime;
this.freeDeviceTime = apiUserDeviceTimeSummary.freeDeviceTime;
this.periodStart = apiUserDeviceTimeSummary.periodStart;
this.periodEnd = apiUserDeviceTimeSummary.periodEnd;
}
}