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

com.testdroid.api.model.APIUserDeviceTimeSummary 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.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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy