HMFunction.cs 738 B

123456789101112131415161718192021222324252627282930313233
  1. using System.Xml;
  2. namespace System.Net.HomeMatic {
  3. public class HMFunction : HMChannelList {
  4. private string _description;
  5. public HMFunction(HMApi Api) : base(Api) {
  6. }
  7. public HMFunction(HMApi Api, XmlNode Data) : base(Api, Data) {
  8. this.Init(Data);
  9. }
  10. protected void Init(XmlNode Data) {
  11. this._description = this.Attr_String(Data, "description");
  12. }
  13. public string Description {
  14. get { return this._description; }
  15. }
  16. protected override string GetClassName() {
  17. return "HMFunction";
  18. }
  19. protected override string ValuesToString() {
  20. return this._description;
  21. }
  22. }
  23. }