| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- using System.Xml;
- namespace System.Net.HomeMatic {
- public class HMScriptErrors :HMElement {
- private int _timestamp;
- private int _row;
- private int _col;
- private string _code;
- private string _msg;
- /*public override bool Equals(object o) {
- if (o == null) return false;
- if (
- ((HMScriptErrors)o).Row == this._row &&
- ((HMScriptErrors)o).Col == this._col &&
- ((HMScriptErrors)o).Code == this._code &&
- ((HMScriptErrors)o).Message == this._msg &&
- ((HMScriptErrors)o).TimeStamp == this._timestamp
- )
- return true;
- else
- return false;
- }
- public static bool operator ==(HMScriptErrors c1, HMScriptErrors c2) {
- if (c1 == null || c2 == null) return c1 == null && c2 == null;
- return c1.Equals(c2);
- }
- public static bool operator !=(HMScriptErrors c1, HMScriptErrors c2) {
- if (c1 == null || c2 == null) return (c1 != null || c2 != null);
- return !c1.Equals(c2);
- }*/
- public override string ToString() {
- return "[System.Net.HomeMatic.HMScriptErrors[" + this.ValuesToString() + "]]";
- }
- private string ValuesToString() {
- return this._timestamp.ToString() + ";" +
- this._row.ToString() + ";" +
- this._col.ToString() + ";" +
- this._code + ";" +
- this._msg + ";";
- }
- public HMScriptErrors(HMApi Api) : base(Api) {
- }
- public HMScriptErrors(HMApi Api, XmlNode Data) : base(Api) {
- this.Init(Data);
- }
- private void Init(XmlNode Data) {
- this._timestamp = this.Attr_Int32(Data, "timestamp");
- this._row = this.Attr_Int32(Data, "row");
- this._col = this.Attr_Int32(Data, "col");
- this._code = this.Attr_String(Data, "code");
- this._msg = this.Attr_String(Data, "msg");
- }
- public int TimeStamp {
- get { return this._timestamp; }
- }
- public int Row {
- get { return this._row; }
- }
- public int Col {
- get { return this._col; }
- }
- public string Code {
- get { return this._code; }
- }
- public string Message {
- get { return this._msg; }
- }
- }
- }
|