/// <summary>
        /// Serialize this object to the specified output stream.
        /// Unlike the Serlialize() method, this method is not inherited from the
        /// parent class allowing a specific version of the method to be called.
        /// </summary>
        /// <param name="_Writer">Output stream</param>
        /// <param name="_wrap">If true, output is wrapped with object
        /// start and end sequences '{ ... }'.</param>
        /// <param name="_first">If true, item is the first entry in a list.</param>
		public new void SerializeX (Writer _Writer, bool _wrap, ref bool _first) {
			if (_wrap) {
				_Writer.WriteObjectStart ();
				}
			((Goedel.Protocol.Response)this).SerializeX(_Writer, false, ref _first);
			if (__Status){
				_Writer.WriteObjectSeparator (ref _first);
				_Writer.WriteToken ("Status", 1);
					_Writer.WriteInteger32 (Status);
				}
			if (StatusDescription != null) {
				_Writer.WriteObjectSeparator (ref _first);
				_Writer.WriteToken ("StatusDescription", 1);
					_Writer.WriteString (StatusDescription);
				}
			if (_wrap) {
				_Writer.WriteObjectEnd ();
				}
			}
        /// <summary>
        /// Serialize this object to the specified output stream.
        /// Unlike the Serlialize() method, this method is not inherited from the
        /// parent class allowing a specific version of the method to be called.
        /// </summary>
        /// <param name="_Writer">Output stream</param>
        /// <param name="_wrap">If true, output is wrapped with object
        /// start and end sequences '{ ... }'.</param>
        /// <param name="_first">If true, item is the first entry in a list.</param>
		public new void SerializeX (Writer _Writer, bool _wrap, ref bool _first) {
			if (_wrap) {
				_Writer.WriteObjectStart ();
				}
			if (Data != null) {
				_Writer.WriteObjectSeparator (ref _first);
				_Writer.WriteToken ("Data", 1);
					_Writer.WriteString (Data);
				}
			if (Offset != null) {
				_Writer.WriteObjectSeparator (ref _first);
				_Writer.WriteToken ("Offset", 1);
				_Writer.WriteArrayStart ();
				bool _firstarray = true;
				foreach (var _index in Offset) {
					_Writer.WriteArraySeparator (ref _firstarray);
					_Writer.WriteInteger32 (_index);
					}
				_Writer.WriteArrayEnd ();
				}

			if (_wrap) {
				_Writer.WriteObjectEnd ();
				}
			}
        /// <summary>
        /// Serialize this object to the specified output stream.
        /// Unlike the Serlialize() method, this method is not inherited from the
        /// parent class allowing a specific version of the method to be called.
        /// </summary>
        /// <param name="_Writer">Output stream</param>
        /// <param name="_wrap">If true, output is wrapped with object
        /// start and end sequences '{ ... }'.</param>
        /// <param name="_first">If true, item is the first entry in a list.</param>
		public new void SerializeX (Writer _Writer, bool _wrap, ref bool _first) {
			if (_wrap) {
				_Writer.WriteObjectStart ();
				}
			if (__Major){
				_Writer.WriteObjectSeparator (ref _first);
				_Writer.WriteToken ("Major", 1);
					_Writer.WriteInteger32 (Major);
				}
			if (__Minor){
				_Writer.WriteObjectSeparator (ref _first);
				_Writer.WriteToken ("Minor", 1);
					_Writer.WriteInteger32 (Minor);
				}
			if (Encodings != null) {
				_Writer.WriteObjectSeparator (ref _first);
				_Writer.WriteToken ("Encodings", 1);
				_Writer.WriteArrayStart ();
				bool _firstarray = true;
				foreach (var _index in Encodings) {
					_Writer.WriteArraySeparator (ref _firstarray);
					// This is an untagged structure. Cannot inherit.
                    //_Writer.WriteObjectStart();
                    //_Writer.WriteToken(_index.Tag(), 1);
					bool firstinner = true;
					_index.Serialize (_Writer, true, ref firstinner);
                    //_Writer.WriteObjectEnd();
					}
				_Writer.WriteArrayEnd ();
				}

			if (URI != null) {
				_Writer.WriteObjectSeparator (ref _first);
				_Writer.WriteToken ("URI", 1);
				_Writer.WriteArrayStart ();
				bool _firstarray = true;
				foreach (var _index in URI) {
					_Writer.WriteArraySeparator (ref _firstarray);
					_Writer.WriteString (_index);
					}
				_Writer.WriteArrayEnd ();
				}

			if (_wrap) {
				_Writer.WriteObjectEnd ();
				}
			}
        /// <summary>
        /// Serialize this object to the specified output stream.
        /// Unlike the Serlialize() method, this method is not inherited from the
        /// parent class allowing a specific version of the method to be called.
        /// </summary>
        /// <param name="_Writer">Output stream</param>
        /// <param name="_wrap">If true, output is wrapped with object
        /// start and end sequences '{ ... }'.</param>
        /// <param name="_first">If true, item is the first entry in a list.</param>
		public new void SerializeX (Writer _Writer, bool _wrap, ref bool _first) {
			if (_wrap) {
				_Writer.WriteObjectStart ();
				}
			((MeshResponse)this).SerializeX(_Writer, false, ref _first);
			if (__Valid){
				_Writer.WriteObjectSeparator (ref _first);
				_Writer.WriteToken ("Valid", 1);
					_Writer.WriteBoolean (Valid);
				}
			if (__Minimum){
				_Writer.WriteObjectSeparator (ref _first);
				_Writer.WriteToken ("Minimum", 1);
					_Writer.WriteInteger32 (Minimum);
				}
			if (__Maximum){
				_Writer.WriteObjectSeparator (ref _first);
				_Writer.WriteToken ("Maximum", 1);
					_Writer.WriteInteger32 (Maximum);
				}
			if (InvalidCharacters != null) {
				_Writer.WriteObjectSeparator (ref _first);
				_Writer.WriteToken ("InvalidCharacters", 1);
					_Writer.WriteString (InvalidCharacters);
				}
			if (Reason != null) {
				_Writer.WriteObjectSeparator (ref _first);
				_Writer.WriteToken ("Reason", 1);
					_Writer.WriteString (Reason);
				}
			if (_wrap) {
				_Writer.WriteObjectEnd ();
				}
			}
        /// <summary>
        /// Serialize this object to the specified output stream.
        /// Unlike the Serlialize() method, this method is not inherited from the
        /// parent class allowing a specific version of the method to be called.
        /// </summary>
        /// <param name="_Writer">Output stream</param>
        /// <param name="_wrap">If true, output is wrapped with object
        /// start and end sequences '{ ... }'.</param>
        /// <param name="_first">If true, item is the first entry in a list.</param>
		public new void SerializeX (Writer _Writer, bool _wrap, ref bool _first) {
			if (_wrap) {
				_Writer.WriteObjectStart ();
				}
			if (Key != null) {
				_Writer.WriteObjectSeparator (ref _first);
				_Writer.WriteToken ("Key", 1);
					_Writer.WriteString (Key);
				}
			if (__Offset){
				_Writer.WriteObjectSeparator (ref _first);
				_Writer.WriteToken ("Offset", 1);
					_Writer.WriteInteger32 (Offset);
				}
			if (_wrap) {
				_Writer.WriteObjectEnd ();
				}
			}
Beispiel #6
0
 public virtual void Serialize(Writer Writer, bool wrap, ref bool first)
 {
     if (wrap) {
         Writer.WriteObjectStart ();
         }
     if (Name != null) {
         Writer.WriteObjectSeparator (ref first);
         Writer.WriteToken ("Name", 1);
             Writer.WriteString (Name);
         }
     if (__Port){
         Writer.WriteObjectSeparator (ref first);
         Writer.WriteToken ("Port", 1);
             Writer.WriteInteger32 (Port);
         }
     if (Address != null) {
         Writer.WriteObjectSeparator (ref first);
         Writer.WriteToken ("Address", 1);
             Writer.WriteString (Address);
         }
     if (__Priority){
         Writer.WriteObjectSeparator (ref first);
         Writer.WriteToken ("Priority", 1);
             Writer.WriteInteger32 (Priority);
         }
     if (__Weight){
         Writer.WriteObjectSeparator (ref first);
         Writer.WriteToken ("Weight", 1);
             Writer.WriteInteger32 (Weight);
         }
     if (Transport != null) {
         Writer.WriteObjectSeparator (ref first);
         Writer.WriteToken ("Transport", 1);
             Writer.WriteString (Transport);
         }
     if (__Expires){
         Writer.WriteObjectSeparator (ref first);
         Writer.WriteToken ("Expires", 1);
             Writer.WriteDateTime (Expires);
         }
     if (Cryptographic != null) {
         Writer.WriteObjectSeparator (ref first);
         Writer.WriteToken ("Cryptographic", 1);
             Cryptographic.Serialize (Writer, false);
         }
     if (wrap) {
         Writer.WriteObjectEnd ();
         }
 }
        /// <summary>
        /// Serialize this object to the specified output stream.
        /// Unlike the Serlialize() method, this method is not inherited from the
        /// parent class allowing a specific version of the method to be called.
        /// </summary>
        /// <param name="_Writer">Output stream</param>
        /// <param name="_wrap">If true, output is wrapped with object
        /// start and end sequences '{ ... }'.</param>
        /// <param name="_first">If true, item is the first entry in a list.</param>
		public new void SerializeX (Writer _Writer, bool _wrap, ref bool _first) {
			if (_wrap) {
				_Writer.WriteObjectStart ();
				}
			if (__NotBefore){
				_Writer.WriteObjectSeparator (ref _first);
				_Writer.WriteToken ("NotBefore", 1);
					_Writer.WriteDateTime (NotBefore);
				}
			if (__Before){
				_Writer.WriteObjectSeparator (ref _first);
				_Writer.WriteToken ("Before", 1);
					_Writer.WriteDateTime (Before);
				}
			if (__MaxEntries){
				_Writer.WriteObjectSeparator (ref _first);
				_Writer.WriteToken ("MaxEntries", 1);
					_Writer.WriteInteger32 (MaxEntries);
				}
			if (__MaxBytes){
				_Writer.WriteObjectSeparator (ref _first);
				_Writer.WriteToken ("MaxBytes", 1);
					_Writer.WriteInteger32 (MaxBytes);
				}
			if (PageKey != null) {
				_Writer.WriteObjectSeparator (ref _first);
				_Writer.WriteToken ("PageKey", 1);
					_Writer.WriteString (PageKey);
				}
			if (_wrap) {
				_Writer.WriteObjectEnd ();
				}
			}
Beispiel #8
0
 public new void Serialize(Writer Writer, bool wrap, ref bool first)
 {
     if (wrap) {
         Writer.WriteObjectStart ();
         }
     ((Message)this).Serialize(Writer, false, ref first);
     if (__Status){
         Writer.WriteObjectSeparator (ref first);
         Writer.WriteToken ("Status", 1);
             Writer.WriteInteger32 (Status);
         }
     if (StatusDescription != null) {
         Writer.WriteObjectSeparator (ref first);
         Writer.WriteToken ("StatusDescription", 1);
             Writer.WriteString (StatusDescription);
         }
     if (wrap) {
         Writer.WriteObjectEnd ();
         }
 }
Beispiel #9
0
 public virtual void Serialize(Writer Writer, bool wrap, ref bool first)
 {
     if (wrap) {
         Writer.WriteObjectStart ();
         }
     if (IPAddress != null) {
         Writer.WriteObjectSeparator (ref first);
         Writer.WriteToken ("IPAddress", 1);
             Writer.WriteString (IPAddress);
         }
     if (__IPPort){
         Writer.WriteObjectSeparator (ref first);
         Writer.WriteToken ("IPPort", 1);
             Writer.WriteInteger32 (IPPort);
         }
     if (Transport != null) {
         Writer.WriteObjectSeparator (ref first);
         Writer.WriteToken ("Transport", 1);
             Writer.WriteString (Transport);
         }
     if (TransportPolicy != null) {
         Writer.WriteObjectSeparator (ref first);
         Writer.WriteToken ("TransportPolicy", 1);
             Writer.WriteString (TransportPolicy);
         }
     if (ProtocolPolicy != null) {
         Writer.WriteObjectSeparator (ref first);
         Writer.WriteToken ("ProtocolPolicy", 1);
             Writer.WriteString (ProtocolPolicy);
         }
     if (Advice != null) {
         Writer.WriteObjectSeparator (ref first);
         Writer.WriteToken ("Advice", 1);
             Advice.Serialize (Writer, false);
         }
     if (wrap) {
         Writer.WriteObjectEnd ();
         }
 }
Beispiel #10
0
 public new void Serialize(Writer Writer, bool wrap, ref bool first)
 {
     if (wrap) {
         Writer.WriteObjectStart ();
         }
     ((QMessage)this).Serialize(Writer, false, ref first);
     if (__Status){
         Writer.WriteObjectSeparator (ref first);
         Writer.WriteToken ("Status", 1);
             Writer.WriteInteger32 (Status);
         }
     if (__Index){
         Writer.WriteObjectSeparator (ref first);
         Writer.WriteToken ("Index", 1);
             Writer.WriteInteger32 (Index);
         }
     if (__Count){
         Writer.WriteObjectSeparator (ref first);
         Writer.WriteToken ("Count", 1);
             Writer.WriteInteger32 (Count);
         }
     if (wrap) {
         Writer.WriteObjectEnd ();
         }
 }
Beispiel #11
0
 public virtual void Serialize(Writer Writer, bool wrap, ref bool first)
 {
     if (wrap) {
         Writer.WriteObjectStart ();
         }
     if (Name != null) {
         Writer.WriteObjectSeparator (ref first);
         Writer.WriteToken ("Name", 1);
             Writer.WriteString (Name);
         }
     if (Account != null) {
         Writer.WriteObjectSeparator (ref first);
         Writer.WriteToken ("Account", 1);
             Writer.WriteString (Account);
         }
     if (Service != null) {
         Writer.WriteObjectSeparator (ref first);
         Writer.WriteToken ("Service", 1);
             Writer.WriteString (Service);
         }
     if (__Port){
         Writer.WriteObjectSeparator (ref first);
         Writer.WriteToken ("Port", 1);
             Writer.WriteInteger32 (Port);
         }
     if (wrap) {
         Writer.WriteObjectEnd ();
         }
 }
        /// <summary>
        /// Serialize this object to the specified output stream.
        /// Unlike the Serlialize() method, this method is not inherited from the
        /// parent class allowing a specific version of the method to be called.
        /// </summary>
        /// <param name="_Writer">Output stream</param>
        /// <param name="_wrap">If true, output is wrapped with object
        /// start and end sequences '{ ... }'.</param>
        /// <param name="_first">If true, item is the first entry in a list.</param>
		public new void SerializeX (Writer _Writer, bool _wrap, ref bool _first) {
			if (_wrap) {
				_Writer.WriteObjectStart ();
				}
			if (ServiceName != null) {
				_Writer.WriteObjectSeparator (ref _first);
				_Writer.WriteToken ("ServiceName", 1);
					_Writer.WriteString (ServiceName);
				}
			if (__Port){
				_Writer.WriteObjectSeparator (ref _first);
				_Writer.WriteToken ("Port", 1);
					_Writer.WriteInteger32 (Port);
				}
			if (Prefix != null) {
				_Writer.WriteObjectSeparator (ref _first);
				_Writer.WriteToken ("Prefix", 1);
					_Writer.WriteString (Prefix);
				}
			if (Security != null) {
				_Writer.WriteObjectSeparator (ref _first);
				_Writer.WriteToken ("Security", 1);
				_Writer.WriteArrayStart ();
				bool _firstarray = true;
				foreach (var _index in Security) {
					_Writer.WriteArraySeparator (ref _firstarray);
					_Writer.WriteString (_index);
					}
				_Writer.WriteArrayEnd ();
				}

			if (UserName != null) {
				_Writer.WriteObjectSeparator (ref _first);
				_Writer.WriteToken ("UserName", 1);
					_Writer.WriteString (UserName);
				}
			if (Password != null) {
				_Writer.WriteObjectSeparator (ref _first);
				_Writer.WriteToken ("Password", 1);
					_Writer.WriteString (Password);
				}
			if (URI != null) {
				_Writer.WriteObjectSeparator (ref _first);
				_Writer.WriteToken ("URI", 1);
					_Writer.WriteString (URI);
				}
			if (Authentication != null) {
				_Writer.WriteObjectSeparator (ref _first);
				_Writer.WriteToken ("Authentication", 1);
					_Writer.WriteString (Authentication);
				}
			if (__TimeOut){
				_Writer.WriteObjectSeparator (ref _first);
				_Writer.WriteToken ("TimeOut", 1);
					_Writer.WriteInteger32 (TimeOut);
				}
			if (__Polling){
				_Writer.WriteObjectSeparator (ref _first);
				_Writer.WriteToken ("Polling", 1);
					_Writer.WriteBoolean (Polling);
				}
			if (_wrap) {
				_Writer.WriteObjectEnd ();
				}
			}