/// <summary> /// Having read a tag, process the corresponding value data. /// </summary> /// <param name="JSONReader">The input stream</param> /// <param name="Tag">The tag</param> public override void DeserializeToken (JSONReader JSONReader, string Tag) { switch (Tag) { case "LastWriteTime" : { LastWriteTime = JSONReader.ReadDateTime (); break; } case "LastCheckpointTime" : { LastCheckpointTime = JSONReader.ReadDateTime (); break; } case "NextCheckpointTime" : { NextCheckpointTime = JSONReader.ReadDateTime (); break; } case "CheckpointValue" : { CheckpointValue = JSONReader.ReadString (); break; } default : { base.DeserializeToken(JSONReader, Tag); break; } } // check up that all the required elements are present }
/// <summary> /// Having read a tag, process the corresponding value data. /// </summary> /// <param name="JSONReader">The input stream</param> /// <param name="Tag">The tag</param> public override void DeserializeToken (JSONReader JSONReader, string Tag) { switch (Tag) { case "TransactionID" : { TransactionID = JSONReader.ReadString (); break; } case "PrimaryKey" : { PrimaryKey = JSONReader.ReadString (); break; } case "PriorTransactionID" : { PriorTransactionID = JSONReader.ReadString (); break; } case "Action" : { Action = JSONReader.ReadString (); break; } case "Added" : { Added = JSONReader.ReadDateTime (); break; } case "Keys" : { // Have a sequence of values bool _Going = JSONReader.StartArray (); Keys = new List <IndexTerm> (); while (_Going) { var _Item = IndexTerm.FromTagged (JSONReader); // a tagged structure Keys.Add (_Item); _Going = JSONReader.NextArray (); } break; } case "Data" : { Data = JSONReader.ReadBinary (); break; } case "Text" : { Text = JSONReader.ReadString (); break; } case "Pending" : { Pending = JSONReader.ReadBoolean (); break; } case "Commit" : { Commit = JSONReader.ReadBoolean (); break; } case "Rollback" : { Rollback = JSONReader.ReadBoolean (); break; } default : { break; } } // check up that all the required elements are present }
/// <summary> /// Having read a tag, process the corresponding value data. /// </summary> /// <param name="JSONReader">The input stream</param> /// <param name="Tag">The tag</param> public override void DeserializeToken (JSONReader JSONReader, string Tag) { switch (Tag) { case "NotBefore" : { NotBefore = JSONReader.ReadDateTime (); break; } case "Before" : { Before = JSONReader.ReadDateTime (); break; } case "MaxEntries" : { MaxEntries = JSONReader.ReadInteger32 (); break; } case "MaxBytes" : { MaxBytes = JSONReader.ReadInteger32 (); break; } case "PageKey" : { PageKey = JSONReader.ReadString (); break; } default : { break; } } // check up that all the required elements are present }
/// <summary> /// Having read a tag, process the corresponding value data. /// </summary> /// <param name="JSONReader"></param> /// <param name="Tag"></param> public override void DeserializeToken (JSONReader JSONReader, string Tag) { switch (Tag) { case "Created" : { Created = JSONReader.ReadDateTime (); break; } case "Modified" : { Modified = JSONReader.ReadDateTime (); break; } default : { break; } } // check up that all the required elements are present }
public virtual void DeserializeToken(JSONReader JSONReader, string Tag) { switch (Tag) { case "Protocol" : { Protocol = JSONReader.ReadString (); break; } case "Secret" : { Secret = JSONReader.ReadBinary (); break; } case "Encryption" : { Encryption = JSONReader.ReadString (); break; } case "Authentication" : { Authentication = JSONReader.ReadString (); break; } case "Ticket" : { Ticket = JSONReader.ReadBinary (); break; } case "Expires" : { Expires = JSONReader.ReadDateTime (); break; } default : { break; } } // check up that all the required elements are present }
public virtual void DeserializeToken(JSONReader JSONReader, string Tag) { switch (Tag) { case "Name" : { Name = JSONReader.ReadString (); break; } case "Port" : { Port = JSONReader.ReadInteger32 (); break; } case "Address" : { Address = JSONReader.ReadString (); break; } case "Priority" : { Priority = JSONReader.ReadInteger32 (); break; } case "Weight" : { Weight = JSONReader.ReadInteger32 (); break; } case "Transport" : { Transport = JSONReader.ReadString (); break; } case "Expires" : { Expires = JSONReader.ReadDateTime (); break; } case "Cryptographic" : { Cryptographic = new Cryptographic (JSONReader); break; } default : { break; } } // check up that all the required elements are present }
/// <summary> /// Having read a tag, process the corresponding value data. /// </summary> /// <param name="JSONReader">The input stream</param> /// <param name="Tag">The tag</param> public override void DeserializeToken (JSONReader JSONReader, string Tag) { switch (Tag) { case "Names" : { // Have a sequence of values bool _Going = JSONReader.StartArray (); Names = new List <string> (); while (_Going) { string _Item = JSONReader.ReadString (); Names.Add (_Item); _Going = JSONReader.NextArray (); } break; } case "Updated" : { Updated = JSONReader.ReadDateTime (); break; } case "NotaryToken" : { NotaryToken = JSONReader.ReadString (); break; } default : { base.DeserializeToken(JSONReader, Tag); break; } } // check up that all the required elements are present }