All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.testdroid.api.model.APIScreenshotExtended Maven / Gradle / Ivy

There is a newer version: 3.34.0
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy