Mozilla IOT changed Thing JSON object already for name to title

This commit is contained in:
BWS Systems
2019-06-27 16:00:05 -05:00
parent 4b0152060f
commit 556a5fef1c
4 changed files with 15 additions and 15 deletions

View File

@@ -5,7 +5,7 @@
<groupId>com.bwssystems.HABridge</groupId>
<artifactId>ha-bridge</artifactId>
<version>5.3.0RC7</version>
<version>5.3.0RC8</version>
<packaging>jar</packaging>
<name>HA Bridge</name>

View File

@@ -7,9 +7,9 @@ import com.google.gson.annotations.SerializedName;
public class MozillaThing {
@SerializedName("name")
@SerializedName("title")
@Expose
private String name;
private String title;
@SerializedName("type")
@Expose
private String type;
@@ -47,14 +47,6 @@ public class MozillaThing {
@Expose
private Object iconHref;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getType() {
return type;
}
@@ -151,4 +143,12 @@ public class MozillaThing {
this.iconHref = iconHref;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
}

View File

@@ -28,7 +28,7 @@
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">HomeGenie show Device List
<h2 class="panel-title">HomeGenie show device List
({{bridge.homegeniedevices.length}})</h2>
</div>
<div class="panel-body">
@@ -96,7 +96,7 @@
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">
Already Configured OpenHAB Devices <a ng-click="toggleButtons()"><span class={{imgButtonsUrl}}
Already Configured HomeGenie Devices <a ng-click="toggleButtons()"><span class={{imgButtonsUrl}}
aria-hidden="true"></span></a></a>
</h2>
</div>

View File

@@ -75,7 +75,7 @@
<td><input type="checkbox" name="bulk.devices[]" value="{{moziotdevice.deviceDetail.name}}"
ng-checked="bulk.devices.indexOf(moziotdevice.deviceDetail.name) > -1"
ng-click="toggleSelection(moziotdevice.deviceDetail.name)">
{{moziotdevice.deviceDetail.name}}</td>
{{moziotdevice.deviceDetail.title}}</td>
<td>{{moziotdevice.deviceDetail.type}}</td>
<td>{{moziotdevice.gatewayName}}</td>
<td>
@@ -104,7 +104,7 @@
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">
Already Configured OpenHAB Devices <a ng-click="toggleButtons()"><span class={{imgButtonsUrl}}
Already Configured Mozilla IOT Devices <a ng-click="toggleButtons()"><span class={{imgButtonsUrl}}
aria-hidden="true"></span></a></a>
</h2>
</div>