/// <summary> /// Constructor used to set the static information (for non-manufacturer-specific attribute) /// </summary> public ZclAttribute(ZclCluster cluster, ushort id, string name, ZclDataType dataType, bool mandatory, bool readable, bool writeable, bool reportable) { this._cluster = cluster; this.Id = id; this.Name = name; this.DataType = dataType; this.Mandatory = mandatory; this.Readable = readable; this.Writable = writeable; this.Reportable = reportable; }
/// <summary> ///Sets the state of the attribute from a ZclAttributeDao which has been restored from a persisted state. /// @param dao the ZclAttributeDao to restore /// </summary> public void SetDao(ZclCluster cluster, ZclAttributeDao dao) { this._cluster = cluster; Id = dao.Id; Name = dao.Name; DataType = dao.DataType; Mandatory = dao.Mandatory; Implemented = dao.Implemented; Writable = dao.Writable; Readable = dao.Readable; Reportable = dao.Reportable; LastValue = dao.LastValue; LastReportTime = dao.LastReportTime; MinimumReportingPeriod = dao.MinimumReportingPeriod; MaximumReportingPeriod = dao.MaximumReportingPeriod; ReportingChange = dao.ReportingChange; ReportingTimeout = dao.ReportingTimeout; }