Package org.openhab.binding.digitalstrom.internal.client.entity

Examples of org.openhab.binding.digitalstrom.internal.client.entity.Zone


    if (jObject.get(JSONApiResponseKeysEnum.APARTMENT_GET_STRUCTURE_ZONES.getKey()) instanceof JSONArray) {
      JSONArray zones = (JSONArray) jObject.get(JSONApiResponseKeysEnum.APARTMENT_GET_STRUCTURE_ZONES.getKey());
     
      for (int i=0; i< zones.size(); i++) {
        if (zones.get(i) instanceof org.json.simple.JSONObject) {
          Zone zone = new JSONZoneImpl((JSONObject)zones.get(i));
          zoneMap.put(zone.getZoneId(), zone);
        }
      }
    }
  }
View Full Code Here


  }
 
  @Override
  public boolean equals(Object obj) {
    if (obj instanceof Zone) {
      Zone other = (Zone)obj;
      return (other.getZoneId() == this.getZoneId());
    }
    return false;
  }
View Full Code Here

TOP

Related Classes of org.openhab.binding.digitalstrom.internal.client.entity.Zone

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.