kopia lustrzana https://github.com/bertrik/ttnhabbridge
Some getter renaming.
rodzic
2fa6b004aa
commit
ab663c6bad
|
@ -137,7 +137,7 @@ public final class TtnHabBridge {
|
|||
final List<HabReceiver> receivers = new ArrayList<>();
|
||||
for (MqttGateway gw : data.getMetaData().getMqttGateways()) {
|
||||
final HabReceiver receiver =
|
||||
new HabReceiver(gw.getGatewayId(), new Location(gw.getLatitude(), gw.getLongitude(), gw.getAltitude()));
|
||||
new HabReceiver(gw.getId(), new Location(gw.getLatitude(), gw.getLongitude(), gw.getAltitude()));
|
||||
receivers.add(receiver);
|
||||
}
|
||||
|
||||
|
|
|
@ -30,10 +30,6 @@ public final class MqttData {
|
|||
@JsonProperty("metadata")
|
||||
private MqttMetaData metaData;
|
||||
|
||||
private MqttData() {
|
||||
// jackson constructor
|
||||
}
|
||||
|
||||
public String getAppId() {
|
||||
return appId;
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||
public final class MqttGateway {
|
||||
|
||||
@JsonProperty("gtw_id")
|
||||
private String gatewayId;
|
||||
private String id;
|
||||
|
||||
@JsonProperty("gtw_trusted")
|
||||
private boolean trusted;
|
||||
|
@ -27,8 +27,8 @@ public final class MqttGateway {
|
|||
@JsonProperty("altitude")
|
||||
private double altitude;
|
||||
|
||||
public String getGatewayId() {
|
||||
return gatewayId;
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public boolean isTrusted() {
|
||||
|
|
|
@ -11,6 +11,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public final class MqttMetaData {
|
||||
|
||||
@JsonProperty("time")
|
||||
private String time;
|
||||
|
||||
@JsonProperty("gateways")
|
||||
|
|
Ładowanie…
Reference in New Issue