Back to project page android-sdk.
The source code is released under:
MIT License
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.
package io.relayr.model; /*from w w w . j av a 2s. c o m*/ /** * The transmitter device object holds the same information as the {@link io.relayr.model.Device} * The difference is that the model attribute in the former is an ID rather than an object. */ public class TransmitterDevice extends Transmitter { public final String model; public TransmitterDevice(String id, String secret, String owner, String name, String model) { super(id, secret, owner, name); this.model = model; } public DeviceModel getModel() { return DeviceModel.from(model); } @Override public int hashCode() { return id.hashCode(); } @Override public boolean equals(Object o) { return o instanceof TransmitterDevice && ((TransmitterDevice) o).id.equals(id); } }