/// <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 "Valid" : {
					Valid = JSONReader.ReadBoolean ();
					break;
					}
				case "Minimum" : {
					Minimum = JSONReader.ReadInteger32 ();
					break;
					}
				case "Maximum" : {
					Maximum = JSONReader.ReadInteger32 ();
					break;
					}
				case "InvalidCharacters" : {
					InvalidCharacters = JSONReader.ReadString ();
					break;
					}
				case "Reason" : {
					Reason = 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 "Identifier" : {
					Identifier = JSONReader.ReadString ();
					break;
					}
				case "Account" : {
					Account = JSONReader.ReadString ();
					break;
					}
				case "KeyValues" : {
					// Have a sequence of values
					bool _Going = JSONReader.StartArray ();
					KeyValues = new List <KeyValue> ();
					while (_Going) {
						// an untagged structure.
						var _Item = new KeyValue (JSONReader);
						KeyValues.Add (_Item);
						_Going = JSONReader.NextArray ();
						}
					break;
					}
				case "SearchConstraints" : {
					// An untagged structure
					SearchConstraints = new SearchConstraints (JSONReader);
 
					break;
					}
				case "Multiple" : {
					Multiple = JSONReader.ReadBoolean ();
					break;
					}
				case "Full" : {
					Full = JSONReader.ReadBoolean ();
					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 "Account" : {
					Account = JSONReader.ReadString ();
					break;
					}
				case "Reserve" : {
					Reserve = JSONReader.ReadBoolean ();
					break;
					}
				case "Language" : {
					// Have a sequence of values
					bool _Going = JSONReader.StartArray ();
					Language = new List <string> ();
					while (_Going) {
						string _Item = JSONReader.ReadString ();
						Language.Add (_Item);
						_Going = JSONReader.NextArray ();
						}
					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 "AutoGenerate" : {
					AutoGenerate = JSONReader.ReadBoolean ();
					break;
					}
				case "Entries" : {
					// Have a sequence of values
					bool _Going = JSONReader.StartArray ();
					Entries = new List <PasswordEntry> ();
					while (_Going) {
						// an untagged structure.
						var _Item = new PasswordEntry (JSONReader);
						Entries.Add (_Item);
						_Going = JSONReader.NextArray ();
						}
					break;
					}
				case "NeverAsk" : {
					// Have a sequence of values
					bool _Going = JSONReader.StartArray ();
					NeverAsk = new List <string> ();
					while (_Going) {
						string _Item = JSONReader.ReadString ();
						NeverAsk.Add (_Item);
						_Going = JSONReader.NextArray ();
						}
					break;
					}
				default : {
					break;
					}
				}
			// check up that all the required elements are present
			}
Beispiel #6
0
 public new void DeserializeToken(JSONReader JSONReader, string Tag)
 {
     switch (Tag) {
         case "Account" : {
             Account = JSONReader.ReadString ();
             break;
             }
         case "Domain" : {
             Domain = JSONReader.ReadString ();
             break;
             }
         case "HavePasscode" : {
             HavePasscode = JSONReader.ReadBoolean ();
             break;
             }
         case "HaveDisplay" : {
             HaveDisplay = JSONReader.ReadBoolean ();
             break;
             }
         case "Challenge" : {
             Challenge = JSONReader.ReadBinary ();
             break;
             }
         case "DeviceID" : {
             DeviceID = JSONReader.ReadString ();
             break;
             }
         case "DeviceURI" : {
             DeviceURI = JSONReader.ReadString ();
             break;
             }
         case "DeviceImage" : {
             DeviceImage = new ImageLink (JSONReader);
             break;
             }
         case "DeviceName" : {
             DeviceName = JSONReader.ReadString ();
             break;
             }
         default : {
             ((BindRequest)this).DeserializeToken(JSONReader, Tag);
             break;
             }
         }
     // check up that all the required elements are present
 }
Beispiel #7
0
        public new void DeserializeToken(JSONReader JSONReader, string Tag)
        {
            switch (Tag) {
                case "Identifier" : {
                    Identifier = new Identifier (JSONReader);
                    break;
                    }
                case "Policy" : {
                    bool _Going = JSONReader.StartArray ();
                    Policy = new List <String> ();
                    while (_Going) {
                        String _Item = JSONReader.ReadString ();
                        Policy.Add (_Item);
                        _Going = JSONReader.NextArray ();
                        }

                    break;
                    }
                case "ProveIt" : {
                    ProveIt = JSONReader.ReadBoolean ();
                    break;
                    }
                default : {
                    ((QRequest)this).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 "ServiceName" : {
					ServiceName = JSONReader.ReadString ();
					break;
					}
				case "Port" : {
					Port = JSONReader.ReadInteger32 ();
					break;
					}
				case "Prefix" : {
					Prefix = JSONReader.ReadString ();
					break;
					}
				case "Security" : {
					// Have a sequence of values
					bool _Going = JSONReader.StartArray ();
					Security = new List <string> ();
					while (_Going) {
						string _Item = JSONReader.ReadString ();
						Security.Add (_Item);
						_Going = JSONReader.NextArray ();
						}
					break;
					}
				case "UserName" : {
					UserName = JSONReader.ReadString ();
					break;
					}
				case "Password" : {
					Password = JSONReader.ReadString ();
					break;
					}
				case "URI" : {
					URI = JSONReader.ReadString ();
					break;
					}
				case "Authentication" : {
					Authentication = JSONReader.ReadString ();
					break;
					}
				case "TimeOut" : {
					TimeOut = JSONReader.ReadInteger32 ();
					break;
					}
				case "Polling" : {
					Polling = JSONReader.ReadBoolean ();
					break;
					}
				default : {
					break;
					}
				}
			// check up that all the required elements are present
			}