If you think the Android project android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
package io.relayr.model;
//fromwww.java2s.comimport com.google.gson.annotations.SerializedName;
import java.io.Serializable;
/** The Device class is a representation of the device entity.
* A device entity is any external entity capable of gathering measurements
* or one which is capable of receiving information from the relayr platform.
* Examples would be a thermometer, a gyroscope or an infrared sensor.
* */publicclass Device implements Serializable {
/** Auto generated uid */privatestaticfinallong serialVersionUID = 1L;
publicfinal String id;
private String name;
privatefinal Model model;
private String owner;
private String firmwareVersion;
privatefinal String secret;
@SerializedName("public") privateboolean isPublic;
public Device(String id, String name, Model model, String owner,
String firmwareVersion, String secret, boolean isPublic) {
this.id = id;
this.name = name;
this.model = model;
this.owner = owner;
this.firmwareVersion = firmwareVersion;
this.secret = secret;
this.isPublic = isPublic;
}
public String getName() {
return name;
}
publicvoid setName(String name) {
this.name = name;
}
public Model getModel() {
return model;
}
public String getOwner() {
return owner;
}
publicvoid setOwner(String owner) {
this.owner = owner;
}
public String getSecret() {
return secret;
}
publicboolean isPublic() {
return isPublic;
}
publicvoid setPublic(boolean isPublic) {
this.isPublic = isPublic;
}
public String getFirmwareVersion() {
return firmwareVersion;
}
publicvoid setFirmwareVersion(String firmwareVersion) {
this.firmwareVersion = firmwareVersion;
}
@Override
public String toString() {
return"Relayr_Device{" +
"id='" + id + '\'' +
", name='" + name + '\'' +
", model=" + model +
", owner='" + owner + '\'' +
", firmwareVersion='" + firmwareVersion + '\'' +
", secret='" + secret + '\'' +
", isPublic=" + isPublic +
'}';
}
}