4 /** Zigbee Message Zcl Configure Reporting Response.
6 * @author Ali Younis <ayounis @ uci.edu>
10 public class IoTZigbeeMessageZclConfigureReportingResponse extends IoTZigbeeMessage {
12 static public class Attribute {
15 private int attributeId;
16 private boolean successOrFail;
17 private boolean isReport;
22 public Attribute(int _attributeId, boolean _successOrFail, boolean _isReport) {
23 attributeId = _attributeId;
24 successOrFail = _successOrFail;
29 * getAttributeId() method that returns attribute id
33 public int getAttributeId() {
38 * getIsReport() method that gets if the direction is report of receive
42 public boolean getIsReport() {
47 * getSuccessOrFail() method is if the configure for this attribute failed or succeeded
51 public boolean getSuccessOrFail() {
57 private int clusterId;
58 private int profileId;
59 private boolean allSuccess;
60 private List <Attribute> attributes;
65 public IoTZigbeeMessageZclConfigureReportingResponse(int _packetId, int _clusterId, int _profileId, boolean _allSuccess, List <Attribute> _attributes) {
68 clusterId = _clusterId;
69 profileId = _profileId;
70 allSuccess = _allSuccess;
71 attributes = _attributes;
75 * getAllSuccess() method that returns if all the configurations succeeded
79 public boolean getAllSuccess() {
84 * getClusterId() method that returns the cluster id
88 public int getClusterId() {
93 * getProfileId() method that returns the profile id
97 public int getProfileId() {
102 * getAttributes() method that returns if all attributes if one of there was a failure to configure
104 * @return List <Attribute>
106 public List <Attribute> getAttributes() {