io.relayr.java.model.onboarding.OnBoardingScan Maven / Gradle / Ivy
package io.relayr.java.model.onboarding;
import java.io.Serializable;
public class OnBoardingScan implements Serializable {
private final int rssi;
private final String announceName;
private final String macAddress;
private final String deviceModelId;
public OnBoardingScan(String model, String mac, int rssi, String announceName) {
this.deviceModelId = model;
this.macAddress = mac;
this.rssi = rssi;
this.announceName = announceName;
}
public int getRssi() {
return rssi;
}
public String getMac() {
return macAddress;
}
public String getModelId() {
return deviceModelId;
}
public String getName() {
return announceName == null ? macAddress : announceName;
}
@Override public String toString() {
return "OnBoardingScan{" +
"rssi=" + rssi +
", mac='" + macAddress + '\'' +
", io.relayr.java.model='" + deviceModelId + '\'' +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy