Adding last version of iotruntime and iotinstaller; preparing to extend IoTMaster...
[iot2.git] / iotjava / iotruntime / zigbee / IoTZigbeeMessageZclReadAttributes.java
diff --git a/iotjava/iotruntime/zigbee/IoTZigbeeMessageZclReadAttributes.java b/iotjava/iotruntime/zigbee/IoTZigbeeMessageZclReadAttributes.java
new file mode 100644 (file)
index 0000000..6f55057
--- /dev/null
@@ -0,0 +1,41 @@
+package iotruntime.zigbee;
+
+/** Zigbee Message Zcl Read Attributes.
+ *
+ * @author      Ali Younis <ayounis @ uci.edu>
+ * @version     1.0
+ * @since       2016-04-19
+ */
+public class IoTZigbeeMessageZclReadAttributes extends IoTZigbeeMessage {
+
+       // private variables
+       private boolean succeeded;
+       private String message;
+
+       /**
+        * Constructor
+        */
+       public IoTZigbeeMessageZclReadAttributes(int _packetId, boolean _succeded, String _message) {
+               super(_packetId);
+               message = _message;
+               succeeded = _succeded;
+       }
+
+       /**
+        * getSucceeded() method that returns the success status
+        *
+        * @return boolean
+        */
+       public boolean getSucceeded() {
+               return succeeded;
+       }
+
+       /**
+        * getMessage() method that returns the error message
+        *
+        * @return String
+        */
+       public String getMessage() {
+               return message;
+       }
+}