initial commit
[libtpproto-csharp.git] / codegenerator / bin / Debug / TP04 / Property.cs
blob292ec6a405deebc6045b94d6472abcf9da405e25
1 //
2 // License: GPLv3+
3 // Created at 12:41 17.05.2008
4 //
5 // Author: Marcel Hauf
6 namespace LibTpProto.Proto.TP04
8 using System;
9 using System.Collections.Generic;
12 public class Property : Response
15 public byte _fRAME_TYPE = 59;
17 private string _calculatefunc;
19 private ulong _modtime;
21 private uint _rank;
23 private uint id;
25 private List<Listcatlist> _catlist;
27 private string _requirementfunc;
29 private string _description;
31 private string _name;
33 private string _dispalyname;
35 /// <summary>property ID
36 ///</summary>
37 public uint ID
39 get
41 return this.id;
43 set
45 if ((value == null))
47 throw new System.ArgumentNullException();
49 this.id = value;
53 /// <summary>The time at which this property was last modified.
54 ///</summary>
55 public ulong Modtime
57 get
59 return this._modtime;
61 set
63 if ((value == null))
65 throw new System.ArgumentNullException();
67 this._modtime = value;
71 public List<Listcatlist> Lcatlist
73 get
75 return this._catlist;
77 set
79 if ((value == null))
81 throw new System.ArgumentNullException();
83 this._catlist = value;
87 /// <summary>rank of the property
88 ///</summary>
89 public uint Rank
91 get
93 return this._rank;
95 set
97 if ((value == null))
99 throw new System.ArgumentNullException();
101 this._rank = value;
105 /// <summary>A valid TPCL identifier for this property.
106 ///</summary>
107 public string Name
111 return this._name;
115 if ((value == null))
117 throw new System.ArgumentNullException();
119 this._name = value;
123 /// <summary>
124 ///</summary>
125 public string Dispalyname
129 return this._dispalyname;
133 if ((value == null))
135 throw new System.ArgumentNullException();
137 this._dispalyname = value;
141 /// <summary>
142 ///</summary>
143 public string Description
147 return this._description;
151 if ((value == null))
153 throw new System.ArgumentNullException();
155 this._description = value;
159 /// <summary>Calculates the value of this funcion, see the TPCL document for more information.
160 ///</summary>
161 public string Calculatefunc
165 return this._calculatefunc;
169 if ((value == null))
171 throw new System.ArgumentNullException();
173 this._calculatefunc = value;
177 /// <summary>Checks the requirements for this property, see the TPCL document for more information.
178 ///</summary>
179 public string Requirementfunc
183 return this._requirementfunc;
187 if ((value == null))
189 throw new System.ArgumentNullException();
191 this._requirementfunc = value;
195 public override string ToString()
197 string liststring = (("<" + this.Lcatlist.Count) + ">[");
198 int count = 0;
199 foreach(Listcatlist list in Lcatlist)
201 if(count > 1 && count > Lcatlist.Count)
203 liststring += "," + list.ToString();
205 else
207 liststring += list.ToString();
209 count++;
211 liststring += "]";
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
216 ///</summary>
217 public class Listcatlist
220 private uint _catid;
222 /// <summary>
223 ///</summary>
224 public uint Catid
228 return this._catid;
232 if ((value == null))
234 throw new System.ArgumentNullException();
236 this._catid = value;
240 public override string ToString()
242 return ("" + ("<<n>>" + this.Catid.ToString()));