3 // Created at 12:41 17.05.2008
6 namespace LibTpProto
.Proto
.TP04
9 using System
.Collections
.Generic
;
12 public class Property
: Response
15 public byte _fRAME_TYPE
= 59;
17 private string _calculatefunc
;
19 private ulong _modtime
;
25 private List
<Listcatlist
> _catlist
;
27 private string _requirementfunc
;
29 private string _description
;
33 private string _dispalyname
;
35 /// <summary>property ID
47 throw new System
.ArgumentNullException();
53 /// <summary>The time at which this property was last modified.
65 throw new System
.ArgumentNullException();
67 this._modtime
= value;
71 public List
<Listcatlist
> Lcatlist
81 throw new System
.ArgumentNullException();
83 this._catlist
= value;
87 /// <summary>rank of the property
99 throw new System
.ArgumentNullException();
105 /// <summary>A valid TPCL identifier for this property.
117 throw new System
.ArgumentNullException();
125 public string Dispalyname
129 return this._dispalyname
;
135 throw new System
.ArgumentNullException();
137 this._dispalyname
= value;
143 public string Description
147 return this._description
;
153 throw new System
.ArgumentNullException();
155 this._description
= value;
159 /// <summary>Calculates the value of this funcion, see the TPCL document for more information.
161 public string Calculatefunc
165 return this._calculatefunc
;
171 throw new System
.ArgumentNullException();
173 this._calculatefunc
= value;
177 /// <summary>Checks the requirements for this property, see the TPCL document for more information.
179 public string Requirementfunc
183 return this._requirementfunc
;
189 throw new System
.ArgumentNullException();
191 this._requirementfunc
= value;
195 public override string ToString()
197 string liststring
= (("<" + this.Lcatlist
.Count
) + ">[");
199 foreach(Listcatlist list
in Lcatlist
)
201 if(count
> 1 && count
> Lcatlist
.Count
)
203 liststring
+= "," + list
.ToString();
207 liststring
+= list
.ToString();
212 return ((((((((("" + ("<<n>>" + this.ID
.ToString())) + ("<<n>>" + this.Modtime
.ToString())) + ("<<n>>" + this.Rank
.ToString())) + this.Name
) + this.Dispalyname
) + this.Description
) + this.Calculatefunc
) + this.Requirementfunc
) + liststring
);
215 /// <summary>Longname: Category List
217 public class Listcatlist
234 throw new System
.ArgumentNullException();
240 public override string ToString()
242 return ("" + ("<<n>>" + this.Catid
.ToString()));