Finished adding dim versus on, utf-8 and track state and return on api

calls.
This commit is contained in:
Admin
2016-03-18 16:38:18 -05:00
parent ad820a68c9
commit 926a7f50dc
15 changed files with 225 additions and 198 deletions

View File

@@ -1,5 +1,7 @@
package com.bwssystems.NestBridge;
import java.io.UnsupportedEncodingException;
public class NestItem {
private String name;
private String id;
@@ -9,7 +11,14 @@ public class NestItem {
return name;
}
public void setName(String name) {
this.name = name;
byte ptext[];
String theLabel = new String(name);
try {
ptext = theLabel.getBytes("ISO-8859-1");
this.name = new String(ptext, "UTF-8");
} catch (UnsupportedEncodingException e) {
this.name = theLabel;
}
}
public String getId() {
return id;