private void fromJSONValueNumeric(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); JSONRationalValue json_rational = json_value.rational_value(); string the_rational_text; if (json_rational != null) { the_rational_text = json_rational.getText(); } else { JSONIntegerValue json_integer = json_value.integer_value(); if (json_integer != null) { the_rational_text = json_integer.getText(); } else { throw new Exception("The value for field ValueNumeric of SportsStatsTypeAndValueJSON is not a number."); } } setValueNumericText(the_rational_text); }
private void fromJSONOffset(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); JSONRationalValue json_rational = json_value.rational_value(); string the_rational_text; if (json_rational != null) { the_rational_text = json_rational.getText(); } else { JSONIntegerValue json_integer = json_value.integer_value(); if (json_integer != null) { the_rational_text = json_integer.getText(); } else { throw new Exception("The value for field Offset of TimezoneLookupInformationNuggetJSON is not a number."); } } setOffsetText(the_rational_text); }
private void fromJSONDistance(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); JSONRationalValue json_rational = json_value.rational_value(); string the_rational_text; if (json_rational != null) { the_rational_text = json_rational.getText(); } else { JSONIntegerValue json_integer = json_value.integer_value(); if (json_integer != null) { the_rational_text = json_integer.getText(); } else { throw new Exception("The value for field Distance of RobotMoveCommandJSON is not a number."); } } setDistanceText(the_rational_text); }
private void fromJSONHTTPTimeout(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); JSONRationalValue json_rational = json_value.rational_value(); string the_rational_text; if (json_rational != null) { the_rational_text = json_rational.getText(); } else { JSONIntegerValue json_integer = json_value.integer_value(); if (json_integer != null) { the_rational_text = json_integer.getText(); } else { throw new Exception("The value for field HTTPTimeout of SenderConfigJSON is not a number."); } } setHTTPTimeoutText(the_rational_text); }
private void fromJSONMovementAmount(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); JSONRationalValue json_rational = json_value.rational_value(); string the_rational_text; if (json_rational != null) { the_rational_text = json_rational.getText(); } else { JSONIntegerValue json_integer = json_value.integer_value(); if (json_integer != null) { the_rational_text = json_integer.getText(); } else { throw new Exception("The value for field MovementAmount of CarControlWindowCommandJSON is not a number."); } } setMovementAmountText(the_rational_text); }
private void fromJSONTaxesandFees(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); JSONRationalValue json_rational = json_value.rational_value(); string the_rational_text; if (json_rational != null) { the_rational_text = json_rational.getText(); } else { JSONIntegerValue json_integer = json_value.integer_value(); if (json_integer != null) { the_rational_text = json_integer.getText(); } else { throw new Exception("The value for field TaxesandFees of FlightFareBreakdownForPassengerTypeJSON is not a number."); } } setTaxesandFeesText(the_rational_text); }
private void fromJSONMinimumDistanceMiles(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); JSONRationalValue json_rational = json_value.rational_value(); string the_rational_text; if (json_rational != null) { the_rational_text = json_rational.getText(); } else { JSONIntegerValue json_integer = json_value.integer_value(); if (json_integer != null) { the_rational_text = json_integer.getText(); } else { throw new Exception("The value for field MinimumDistanceMiles of AstronomyDistanceFromEarthCommandJSON is not a number."); } } setMinimumDistanceMilesText(the_rational_text); }
private void fromJSONlongitude(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); JSONRationalValue json_rational = json_value.rational_value(); string the_rational_text; if (json_rational != null) { the_rational_text = json_rational.getText(); } else { JSONIntegerValue json_integer = json_value.integer_value(); if (json_integer != null) { the_rational_text = json_integer.getText(); } else { throw new Exception("The value for field longitude of UberRequestEndpointJSON is not a number."); } } setlongitudeText(the_rational_text); }
private void fromJSONInterestRatePercentage(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); JSONRationalValue json_rational = json_value.rational_value(); string the_rational_text; if (json_rational != null) { the_rational_text = json_rational.getText(); } else { JSONIntegerValue json_integer = json_value.integer_value(); if (json_integer != null) { the_rational_text = json_integer.getText(); } else { throw new Exception("The value for field InterestRatePercentage of MortgageCalculatorInputVariableInterestRateJSON is not a number."); } } setInterestRatePercentageText(the_rational_text); }
private void fromJSONFrequency(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); JSONRationalValue json_rational = json_value.rational_value(); string the_rational_text; if (json_rational != null) { the_rational_text = json_rational.getText(); } else { JSONIntegerValue json_integer = json_value.integer_value(); if (json_integer != null) { the_rational_text = json_integer.getText(); } else { throw new Exception("The value for field Frequency of SevenDigitalRadioStationJSON is not a number."); } } setFrequencyText(the_rational_text); }
private void fromJSONArrivalEstimateInMinutes(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); JSONRationalValue json_rational = json_value.rational_value(); string the_rational_text; if (json_rational != null) { the_rational_text = json_rational.getText(); } else { JSONIntegerValue json_integer = json_value.integer_value(); if (json_integer != null) { the_rational_text = json_integer.getText(); } else { throw new Exception("The value for field ArrivalEstimateInMinutes of UberCompositeRequestJSON is not a number."); } } setArrivalEstimateInMinutesText(the_rational_text); }
private void fromJSONZoomAmount(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); JSONRationalValue json_rational = json_value.rational_value(); string the_rational_text; if (json_rational != null) { the_rational_text = json_rational.getText(); } else { JSONIntegerValue json_integer = json_value.integer_value(); if (json_integer != null) { the_rational_text = json_integer.getText(); } else { throw new Exception("The value for field ZoomAmount of MapControlIntraQueryStateJSON is not a number."); } } setZoomAmountText(the_rational_text); }
private void fromJSONBrightnessDelta(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); JSONRationalValue json_rational = json_value.rational_value(); string the_rational_text; if (json_rational != null) { the_rational_text = json_rational.getText(); } else { JSONIntegerValue json_integer = json_value.integer_value(); if (json_integer != null) { the_rational_text = json_integer.getText(); } else { throw new Exception("The value for field BrightnessDelta of HomeAutomationSetBrightnessDeltaCommandJSON is not a number."); } } setBrightnessDeltaText(the_rational_text); }
private void fromJSONBankroll(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); JSONRationalValue json_rational = json_value.rational_value(); string the_rational_text; if (json_rational != null) { the_rational_text = json_rational.getText(); } else { JSONIntegerValue json_integer = json_value.integer_value(); if (json_integer != null) { the_rational_text = json_integer.getText(); } else { throw new Exception("The value for field Bankroll of BlackjackDoubledownInformationNuggetJSON is not a number."); } } setBankrollText(the_rational_text); }
private void fromJSONTemperature(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); JSONRationalValue json_rational = json_value.rational_value(); string the_rational_text; if (json_rational != null) { the_rational_text = json_rational.getText(); } else { JSONIntegerValue json_integer = json_value.integer_value(); if (json_integer != null) { the_rational_text = json_integer.getText(); } else { throw new Exception("The value for field Temperature of HomeAutomationTemperatureJSON is not a number."); } } setTemperatureText(the_rational_text); }
private void fromJSONSurgeMultiplier(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); JSONRationalValue json_rational = json_value.rational_value(); string the_rational_text; if (json_rational != null) { the_rational_text = json_rational.getText(); } else { JSONIntegerValue json_integer = json_value.integer_value(); if (json_integer != null) { the_rational_text = json_integer.getText(); } else { throw new Exception("The value for field SurgeMultiplier of UberRequestsContextJSON is not a number."); } } setSurgeMultiplierText(the_rational_text); }
private void fromJSONTotalLayoverDuration(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); JSONRationalValue json_rational = json_value.rational_value(); string the_rational_text; if (json_rational != null) { the_rational_text = json_rational.getText(); } else { JSONIntegerValue json_integer = json_value.integer_value(); if (json_integer != null) { the_rational_text = json_integer.getText(); } else { throw new Exception("The value for field TotalLayoverDuration of FlightSegmentGroupJSON is not a number."); } } setTotalLayoverDurationText(the_rational_text); }
private void fromJSONValue(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); JSONRationalValue json_rational = json_value.rational_value(); string the_rational_text; if (json_rational != null) { the_rational_text = json_rational.getText(); } else { JSONIntegerValue json_integer = json_value.integer_value(); if (json_integer != null) { the_rational_text = json_integer.getText(); } else { throw new Exception("The value for field Value of UnitsValue_VisibilityJSON is not a number."); } } setValueText(the_rational_text); }
private void fromJSONLowerBound(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); JSONRationalValue json_rational = json_value.rational_value(); string the_rational_text; if (json_rational != null) { the_rational_text = json_rational.getText(); } else { JSONIntegerValue json_integer = json_value.integer_value(); if (json_integer != null) { the_rational_text = json_integer.getText(); } else { throw new Exception("The value for field LowerBound of RandomNumberGeneratorNumberRequestResultJSON is not a number."); } } setLowerBoundText(the_rational_text); }