Skip to content

Commit fc30847

Browse files
committed
Support double stack machines
1 parent a175a50 commit fc30847

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/src/main/java/com/maths22/laundryviewapi/MachineStatus.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ public RoomMachineStatus lookup(String roomId) {
8181
}
8282
}
8383

84-
if(obj.has("appliance_type2") || obj.getString("type").equals("washNdry")) {
84+
if(obj.has("appliance_type2") || obj.getString("type").equals("washNdry") || obj.getString("type").equals("dblDry")) {
8585
String itemType = obj.has("appliance_type2") ? obj.getString("appliance_type2") : null;
8686
// It must be that obj.getString("type").equals("washNdry")
8787
if(itemType == null) {
88-
itemType = "W";
88+
itemType = obj.getString("type").equals("washNdry") ? "W" : "D";
8989
}
9090
String id = obj.getString("appliance_desc_key2");
9191
String number = obj.getString("appliance_desc2");

0 commit comments

Comments
 (0)