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

com.testdroid.api.model.APIAdminDeviceProblemPair 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 jakarta.xml.bind.annotation.XmlType;

/**
 * @author Michał Szpruta 
 */
public class APIAdminDeviceProblemPair extends APIEntity {

    @XmlType(namespace = "APIAdminDeviceProblemPair", name = "APIAdminDeviceProblemPairType")
    public enum Type {
        CLEANING,
        DIRTY,
        OFFLINE,
        LOW_BATTERY,
        NO_INTERNET_CONNECTION
    }

    private Type type;

    private Object value;

    public APIAdminDeviceProblemPair() {
    }

    public APIAdminDeviceProblemPair(Type type) {
        this.type = type;
    }

    public APIAdminDeviceProblemPair(Type type, Object value) {
        this.type = type;
        this.value = value;
    }

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    @Override
    @JsonIgnore
    protected  void clone(T from) {
        APIAdminDeviceProblemPair cloneFrom = (APIAdminDeviceProblemPair) from;
        cloneBase(from);
        this.type = cloneFrom.type;
        this.value = cloneFrom.value;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy