HMSystemNotification.cs 981 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System.Xml;
  2. namespace System.Net.HomeMatic {
  3. public class HMSystemNotification : HMBase {
  4. private string _hssType;
  5. private int _timestamp;
  6. protected override string GetClassName() {
  7. return "HMSystemNotification";
  8. }
  9. protected override string ValuesToString() {
  10. return this._hssType + ";" +
  11. this._timestamp.ToString() + ";";
  12. }
  13. public HMSystemNotification(HMApi Api) : base(Api) {
  14. }
  15. public HMSystemNotification(HMApi Api, XmlNode Data) :base(Api, Data) {
  16. this.Init(Data);
  17. }
  18. private void Init(XmlNode Data) {
  19. this._hssType = this.Attr_String(Data, "type");
  20. this._timestamp = this.Attr_Int32(Data, "timestamp");
  21. }
  22. public string HSS_Type {
  23. get { return this._hssType; }
  24. }
  25. public int TimeStamp {
  26. get { return this._timestamp; }
  27. }
  28. }
  29. }