/// <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 (); } ((ApplicationProfilePrivate)this).SerializeX(_Writer, false, ref _first); if (Account != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Account", 1); _Writer.WriteString (Account); } if (DeviceEntries != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("DeviceEntries", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in DeviceEntries) { _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 (HostEntries != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("HostEntries", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in HostEntries) { _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 (_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 (); } ((Entry)this).SerializeX(_Writer, false, ref _first); if (Names != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Names", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in Names) { _Writer.WriteArraySeparator (ref _firstarray); _Writer.WriteString (_index); } _Writer.WriteArrayEnd (); } if (__Updated){ _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Updated", 1); _Writer.WriteDateTime (Updated); } if (NotaryToken != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("NotaryToken", 1); _Writer.WriteString (NotaryToken); } 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 (); } ((Resource)this).SerializeX(_Writer, false, ref _first); if (Account != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Account", 1); _Writer.WriteString (Account); } if (Administrators != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Administrators", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in Administrators) { _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 (Readers != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Readers", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in Readers) { _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 (_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 (Entries != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Entries", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in Entries) { _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 (_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 (TransactionID != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("TransactionID", 1); _Writer.WriteString (TransactionID); } if (PrimaryKey != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("PrimaryKey", 1); _Writer.WriteString (PrimaryKey); } if (PriorTransactionID != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("PriorTransactionID", 1); _Writer.WriteString (PriorTransactionID); } if (Action != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Action", 1); _Writer.WriteString (Action); } if (__Added){ _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Added", 1); _Writer.WriteDateTime (Added); } if (Keys != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Keys", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in Keys) { _Writer.WriteArraySeparator (ref _firstarray); _Writer.WriteObjectStart(); _Writer.WriteToken(_index.Tag(), 1); bool firstinner = true; _index.Serialize (_Writer, true, ref firstinner); _Writer.WriteObjectEnd(); } _Writer.WriteArrayEnd (); } if (Data != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Data", 1); _Writer.WriteBinary (Data); } if (Text != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Text", 1); _Writer.WriteString (Text); } if (__Pending){ _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Pending", 1); _Writer.WriteBoolean (Pending); } if (__Commit){ _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Commit", 1); _Writer.WriteBoolean (Commit); } if (__Rollback){ _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Rollback", 1); _Writer.WriteBoolean (Rollback); } if (_wrap) { _Writer.WriteObjectEnd (); } }
public new void Serialize(Writer Writer, bool wrap, ref bool first) { if (wrap) { Writer.WriteObjectStart (); } ((QRequest)this).Serialize(Writer, false, ref first); if (Service != null) { Writer.WriteObjectSeparator (ref first); Writer.WriteToken ("Service", 1); Writer.WriteArrayStart (); bool firstarray = true; foreach (Service _index in Service) { Writer.WriteArraySeparator (ref firstarray); bool firstinner = true; _index.Serialize (Writer, true, ref firstinner); } 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 (DataItems != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("DataItems", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in DataItems) { _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 (PageKey != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("PageKey", 1); _Writer.WriteString (PageKey); } 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 (Identifier != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Identifier", 1); _Writer.WriteString (Identifier); } if (Type != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Type", 1); _Writer.WriteString (Type); } if (Friendly != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Friendly", 1); _Writer.WriteString (Friendly); } if (SignID != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("SignID", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in SignID) { _Writer.WriteArraySeparator (ref _firstarray); _Writer.WriteString (_index); } _Writer.WriteArrayEnd (); } if (DecryptID != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("DecryptID", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in DecryptID) { _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 (); } if (Protected != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("protected", 1); _Writer.WriteBinary (Protected); } if (Unprotected != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("unprotected", 1); _Writer.WriteBinary (Unprotected); } if (IV != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("iv", 1); _Writer.WriteBinary (IV); } if (CipherText != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("ciphertext", 1); _Writer.WriteBinary (CipherText); } if (JTag != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("tag", 1); _Writer.WriteBinary (JTag); } if (AdditionalAuthenticatedData != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("aad", 1); _Writer.WriteBinary (AdditionalAuthenticatedData); } if (Recipients != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("recipients", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in Recipients) { _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 (_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 (UDF != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("UDF", 1); _Writer.WriteString (UDF); } if (X509Certificate != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("X509Certificate", 1); _Writer.WriteBinary (X509Certificate); } if (X509Chain != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("X509Chain", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in X509Chain) { _Writer.WriteArraySeparator (ref _firstarray); _Writer.WriteBinary (_index); } _Writer.WriteArrayEnd (); } if (X509CSR != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("X509CSR", 1); _Writer.WriteBinary (X509CSR); } if (PublicParameters != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("PublicParameters", 1); // expand this to a tagged structure //PublicParameters.Serialize (_Writer, false); { _Writer.WriteObjectStart(); _Writer.WriteToken(PublicParameters.Tag(), 1); bool firstinner = true; PublicParameters.Serialize (_Writer, true, ref firstinner); _Writer.WriteObjectEnd(); } } if (PrivateParameters != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("PrivateParameters", 1); // expand this to a tagged structure //PrivateParameters.Serialize (_Writer, false); { _Writer.WriteObjectStart(); _Writer.WriteToken(PrivateParameters.Tag(), 1); bool firstinner = true; PrivateParameters.Serialize (_Writer, true, ref firstinner); _Writer.WriteObjectEnd(); } } 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 (); } ((Profile)this).SerializeX(_Writer, false, ref _first); if (SignedMasterProfile != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("SignedMasterProfile", 1); SignedMasterProfile.Serialize (_Writer, false); } if (Devices != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Devices", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in Devices) { _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 (Applications != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Applications", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in Applications) { _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 (_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 (); } ((Profile)this).SerializeX(_Writer, false, ref _first); if (MasterSignatureKey != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("MasterSignatureKey", 1); MasterSignatureKey.Serialize (_Writer, false); } if (MasterEscrowKeys != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("MasterEscrowKeys", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in MasterEscrowKeys) { _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 (OnlineSignatureKeys != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("OnlineSignatureKeys", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in OnlineSignatureKeys) { _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 (_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 (); } ((MeshRequest)this).SerializeX(_Writer, false, ref _first); if (Account != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Account", 1); _Writer.WriteString (Account); } if (__Reserve){ _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Reserve", 1); _Writer.WriteBoolean (Reserve); } if (Language != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Language", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in Language) { _Writer.WriteArraySeparator (ref _firstarray); _Writer.WriteString (_index); } _Writer.WriteArrayEnd (); } if (_wrap) { _Writer.WriteObjectEnd (); } }
public new void Serialize(Writer Writer, bool wrap, ref bool first) { if (wrap) { Writer.WriteObjectStart (); } ((QRequest)this).Serialize(Writer, false, ref first); if (Identifier != null) { Writer.WriteObjectSeparator (ref first); Writer.WriteToken ("Identifier", 1); Identifier.Serialize (Writer, false); } if (Policy != null) { Writer.WriteObjectSeparator (ref first); Writer.WriteToken ("Policy", 1); Writer.WriteArrayStart (); bool firstarray = true; foreach (string _index in Policy) { Writer.WriteArraySeparator (ref firstarray); Writer.WriteString (_index); } Writer.WriteArrayEnd (); } if (__ProveIt){ Writer.WriteObjectSeparator (ref first); Writer.WriteToken ("ProveIt", 1); Writer.WriteBoolean (ProveIt); } 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 (); } ((MeshRequest)this).SerializeX(_Writer, false, ref _first); if (Identifier != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Identifier", 1); _Writer.WriteString (Identifier); } if (Account != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Account", 1); _Writer.WriteString (Account); } if (KeyValues != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("KeyValues", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in KeyValues) { _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 (SearchConstraints != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("SearchConstraints", 1); SearchConstraints.Serialize (_Writer, false); } if (__Multiple){ _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Multiple", 1); _Writer.WriteBoolean (Multiple); } if (__Full){ _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Full", 1); _Writer.WriteBoolean (Full); } if (_wrap) { _Writer.WriteObjectEnd (); } }
public virtual void Serialize(Writer Writer, bool wrap, ref bool first) { if (wrap) { Writer.WriteObjectStart (); } if (Identifier != null) { Writer.WriteObjectSeparator (ref first); Writer.WriteToken ("Identifier", 1); Writer.WriteArrayStart (); bool firstarray = true; foreach (Identifier _index in Identifier) { Writer.WriteArraySeparator (ref firstarray); bool firstinner = true; _index.Serialize (Writer, true, ref firstinner); } Writer.WriteArrayEnd (); } if (Connection != null) { Writer.WriteObjectSeparator (ref first); Writer.WriteToken ("Connection", 1); Connection.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 (Sites != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Sites", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in Sites) { _Writer.WriteArraySeparator (ref _firstarray); _Writer.WriteString (_index); } _Writer.WriteArrayEnd (); } if (DNS != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("DNS", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in DNS) { _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 (Prefix != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Prefix", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in Prefix) { _Writer.WriteArraySeparator (ref _firstarray); _Writer.WriteString (_index); } _Writer.WriteArrayEnd (); } if (CTL != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("CTL", 1); _Writer.WriteBinary (CTL); } if (WebPKI != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("WebPKI", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in WebPKI) { _Writer.WriteArraySeparator (ref _firstarray); _Writer.WriteString (_index); } _Writer.WriteArrayEnd (); } if (_wrap) { _Writer.WriteObjectEnd (); } }
public new void Serialize(Writer Writer, bool wrap, ref bool first) { if (wrap) { Writer.WriteObjectStart (); } ((QResponse)this).Serialize(Writer, false, ref first); if (Policy != null) { Writer.WriteObjectSeparator (ref first); Writer.WriteToken ("Policy", 1); Writer.WriteArrayStart (); bool firstarray = true; foreach (string _index in Policy) { 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 (); } 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 (); } }
public new void Serialize(Writer Writer, bool wrap, ref bool first) { if (wrap) { Writer.WriteObjectStart (); } ((BindResponse)this).Serialize(Writer, false, ref first); if (Challenge != null) { Writer.WriteObjectSeparator (ref first); Writer.WriteToken ("Challenge", 1); Writer.WriteBinary (Challenge); } if (ChallengeResponse != null) { Writer.WriteObjectSeparator (ref first); Writer.WriteToken ("ChallengeResponse", 1); Writer.WriteBinary (ChallengeResponse); } if (VerificationImage != null) { Writer.WriteObjectSeparator (ref first); Writer.WriteToken ("VerificationImage", 1); Writer.WriteArrayStart (); bool firstarray = true; foreach (ImageLink _index in VerificationImage) { Writer.WriteArraySeparator (ref firstarray); bool firstinner = true; _index.Serialize (Writer, true, ref firstinner); } 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 (EmailAddress != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("EmailAddress", 1); _Writer.WriteString (EmailAddress); } if (ReplyToAddress != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("ReplyToAddress", 1); _Writer.WriteString (ReplyToAddress); } if (DisplayName != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("DisplayName", 1); _Writer.WriteString (DisplayName); } if (AccountName != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("AccountName", 1); _Writer.WriteString (AccountName); } if (Inbound != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Inbound", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in Inbound) { _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 (Outbound != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Outbound", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in Outbound) { _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 (Sign != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Sign", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in Sign) { _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 (Encrypt != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Encrypt", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in Encrypt) { _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 (_wrap) { _Writer.WriteObjectEnd (); } }
public new void Serialize(Writer Writer, bool wrap, ref bool first) { if (wrap) { Writer.WriteObjectStart (); } ((Request)this).Serialize(Writer, false, ref first); if (Encryption != null) { Writer.WriteObjectSeparator (ref first); Writer.WriteToken ("Encryption", 1); Writer.WriteArrayStart (); bool firstarray = true; foreach (string _index in Encryption) { Writer.WriteArraySeparator (ref firstarray); Writer.WriteString (_index); } Writer.WriteArrayEnd (); } if (Authentication != null) { Writer.WriteObjectSeparator (ref first); Writer.WriteToken ("Authentication", 1); Writer.WriteArrayStart (); bool firstarray = true; foreach (string _index in Authentication) { 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 (); } if (ID != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("ID", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in ID) { _Writer.WriteArraySeparator (ref _firstarray); _Writer.WriteString (_index); } _Writer.WriteArrayEnd (); } if (Dictionary != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Dictionary", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in Dictionary) { _Writer.WriteArraySeparator (ref _firstarray); _Writer.WriteString (_index); } _Writer.WriteArrayEnd (); } if (_wrap) { _Writer.WriteObjectEnd (); } }
public new void Serialize(Writer Writer, bool wrap, ref bool first) { if (wrap) { Writer.WriteObjectStart (); } ((Response)this).Serialize(Writer, false, ref first); if (Cryptographic != null) { Writer.WriteObjectSeparator (ref first); Writer.WriteToken ("Cryptographic", 1); Writer.WriteArrayStart (); bool firstarray = true; foreach (Cryptographic _index in Cryptographic) { Writer.WriteArraySeparator (ref firstarray); bool firstinner = true; _index.Serialize (Writer, true, ref firstinner); } Writer.WriteArrayEnd (); } if (Service != null) { Writer.WriteObjectSeparator (ref first); Writer.WriteToken ("Service", 1); Writer.WriteArrayStart (); bool firstarray = true; foreach (Connection _index in Service) { Writer.WriteArraySeparator (ref firstarray); bool firstinner = true; _index.Serialize (Writer, true, ref firstinner); } 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 (); } ((RecryptResponse)this).SerializeX(_Writer, false, ref _first); if (Version != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Version", 1); Version.Serialize (_Writer, false); } if (Alternates != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Alternates", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in Alternates) { _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 (_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 (Sites != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("Sites", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in Sites) { _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 (_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 (); } ((Entry)this).SerializeX(_Writer, false, ref _first); if (HostConnection != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("HostConnection", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in HostConnection) { _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 (HostKeys != null) { _Writer.WriteObjectSeparator (ref _first); _Writer.WriteToken ("HostKeys", 1); _Writer.WriteArrayStart (); bool _firstarray = true; foreach (var _index in HostKeys) { _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 (_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 (); } }