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