com.testdroid.api.model.APIScreenshotExtended 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.testdroid.api.APIEntity;
import javax.xml.bind.annotation.XmlRootElement;
/**
* @author Michał Szpruta
*/
@XmlRootElement
public class APIScreenshotExtended extends APIScreenshot {
private APIDevice device;
private Long projectId;
private Long testRunId;
private Long deviceRunId;
public APIScreenshotExtended() {
}
public APIScreenshotExtended(Long id, String originalName, Boolean fail, Type type, Long takeTimestamp,
APIDevice device, Long projectId, Long testRunId, Long deviceRunId) {
super(id, originalName, fail, type, takeTimestamp);
this.device = device;
this.projectId = projectId;
this.testRunId = testRunId;
this.deviceRunId = deviceRunId;
}
public APIDevice getDevice() {
return device;
}
public void setDevice(APIDevice device) {
this.device = device;
}
public Long getProjectId() {
return projectId;
}
public void setProjectId(Long projectId) {
this.projectId = projectId;
}
public Long getTestRunId() {
return testRunId;
}
public void setTestRunId(Long testRunId) {
this.testRunId = testRunId;
}
public Long getDeviceRunId() {
return deviceRunId;
}
public void setDeviceRunId(Long deviceRunId) {
this.deviceRunId = deviceRunId;
}
@Override
@JsonIgnore
protected void clone(T from) {
APIScreenshotExtended apiScreenshot = (APIScreenshotExtended) from;
super.clone(from);
this.device = apiScreenshot.device;
this.projectId = apiScreenshot.projectId;
this.testRunId = apiScreenshot.testRunId;
this.deviceRunId = apiScreenshot.deviceRunId;
}
}