com.testdroid.api.model.APIDeviceUsage 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
The newest version!
package com.testdroid.api.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.testdroid.api.APIEntity;
/**
* @author Adrian Zybala
*/
public class APIDeviceUsage extends APIEntity {
private APIDevice device;
private Long totalDeviceSessions;
private Long failedDeviceSessions;
public APIDeviceUsage() {
}
@SuppressWarnings("squid:S107")
public APIDeviceUsage(
Long id, String displayName, String manufacturer, String releaseVersion,
Integer apiLevel, Integer creditsPrice, String imagePrefix, Integer imageTop, Integer imageLeft,
Integer imageWidth, Integer imageHeight, Integer frameExtraWidth, APIDevice.OsType osType,
APIDevice.Platform platform, Boolean online, Boolean locked, Boolean enabled, String location,
Long totalDeviceSessions, Long failedDeviceSessions) {
super(id);
this.device = new APIDevice(id, displayName, manufacturer, releaseVersion, apiLevel,
creditsPrice, imagePrefix, imageTop, imageLeft, imageWidth, imageHeight, frameExtraWidth, osType,
platform, online, locked, enabled, location, null, null, null, null);
this.totalDeviceSessions = totalDeviceSessions;
this.failedDeviceSessions = failedDeviceSessions;
}
@Override
@JsonIgnore
protected void clone(T from) {
APIDeviceUsage apiDeviceUsage = (APIDeviceUsage) from;
cloneBase(from);
this.device = apiDeviceUsage.device;
this.totalDeviceSessions = apiDeviceUsage.totalDeviceSessions;
this.failedDeviceSessions = apiDeviceUsage.failedDeviceSessions;
}
public APIDevice getDevice() {
return device;
}
public void setDevice(APIDevice device) {
this.device = device;
}
public Long getTotalDeviceSessions() {
return totalDeviceSessions;
}
public void setTotalDeviceSessions(Long totalDeviceSessions) {
this.totalDeviceSessions = totalDeviceSessions;
}
public Long getFailedDeviceSessions() {
return failedDeviceSessions;
}
public void setFailedDeviceSessions(Long failedDeviceSessions) {
this.failedDeviceSessions = failedDeviceSessions;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy