Adding changes and files for doorlock driver
[iot2.git] / benchmarks / other / ZigbeeTest / IoTZigbeeMessageZdoBindResponse.java
1
2 /** Zigbee Message Zdo Bind Response.
3  *
4  * @author      Ali Younis <ayounis @ uci.edu>
5  * @version     1.0
6  * @since       2016-04-19
7  */
8 public class IoTZigbeeMessageZdoBindResponse extends IoTZigbeeMessage {
9
10         // private variables
11         private boolean succeeded;
12         private String message;
13
14         /**
15          * Constructor
16          */
17         public IoTZigbeeMessageZdoBindResponse(int _packetId, boolean _succeded, String _message) {
18                 super(_packetId);
19                 message = _message;
20                 succeeded = _succeded;
21         }
22
23         /**
24          * getSucceeded() method that returns the success status
25          *
26          * @return boolean
27          */
28         public boolean getSucceeded() {
29                 return succeeded;
30         }
31
32         /**
33          * getMessage() method that returns the error message
34          *
35          * @return String
36          */
37         public String getMessage() {
38                 return message;
39         }
40 }