Beispiel #1
0
    private void  fromJSONRequestRedirectOnConfirmation(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONTrueValue json_true = json_value.true_value();
        bool          the_bool;

        if (json_true != null)
        {
            the_bool = true;
        }
        else
        {
            JSONFalseValue json_false = json_value.false_value();
            if (json_false != null)
            {
                the_bool = false;
            }
            else
            {
                throw new Exception("The value for field RequestRedirectOnConfirmation of UberRequestSettingsJSON is not true for false.");
            }
        }
        setRequestRedirectOnConfirmation(the_bool);
    }
Beispiel #2
0
    private void  fromJSONAliasMatched(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONTrueValue json_true = json_value.true_value();
        bool          the_bool;

        if (json_true != null)
        {
            the_bool = true;
        }
        else
        {
            JSONFalseValue json_false = json_value.false_value();
            if (json_false != null)
            {
                the_bool = false;
            }
            else
            {
                throw new Exception("The value for field AliasMatched of UserAppParsingItemJSON is not true for false.");
            }
        }
        setAliasMatched(the_bool);
    }
Beispiel #3
0
    private void  fromJSONValue(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONTrueValue json_true = json_value.true_value();
        bool          the_bool;

        if (json_true != null)
        {
            the_bool = true;
        }
        else
        {
            JSONFalseValue json_false = json_value.false_value();
            if (json_false != null)
            {
                the_bool = false;
            }
            else
            {
                throw new Exception("The value for field Value of DisambiguateResultsBeforeActionJSON is not true for false.");
            }
        }
        setValue(the_bool);
    }
Beispiel #4
0
    private void  fromJSONNew(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONTrueValue json_true = json_value.true_value();
        bool          the_bool;

        if (json_true != null)
        {
            the_bool = true;
        }
        else
        {
            JSONFalseValue json_false = json_value.false_value();
            if (json_false != null)
            {
                the_bool = false;
            }
            else
            {
                throw new Exception("The value for field New of MortgageCalculatorInputVariableJSON is not true for false.");
            }
        }
        setNew(the_bool);
    }
Beispiel #5
0
    private void  fromJSONOldConversation(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONTrueValue json_true = json_value.true_value();
        bool          the_bool;

        if (json_true != null)
        {
            the_bool = true;
        }
        else
        {
            JSONFalseValue json_false = json_value.false_value();
            if (json_false != null)
            {
                the_bool = false;
            }
            else
            {
                throw new Exception("The value for field OldConversation of StockQueryBlockJSON is not true for false.");
            }
        }
        setOldConversation(the_bool);
    }
Beispiel #6
0
    private void  fromJSONExpressedAsDuration(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONTrueValue json_true = json_value.true_value();
        bool          the_bool;

        if (json_true != null)
        {
            the_bool = true;
        }
        else
        {
            JSONFalseValue json_false = json_value.false_value();
            if (json_false != null)
            {
                the_bool = false;
            }
            else
            {
                throw new Exception("The value for field ExpressedAsDuration of DateAndOrTimeRangeSpecJSON is not true for false.");
            }
        }
        setExpressedAsDuration(the_bool);
    }
Beispiel #7
0
    private void  fromJSONAutoPlayPreview(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONTrueValue json_true = json_value.true_value();
        bool          the_bool;

        if (json_true != null)
        {
            the_bool = true;
        }
        else
        {
            JSONFalseValue json_false = json_value.false_value();
            if (json_false != null)
            {
                the_bool = false;
            }
            else
            {
                throw new Exception("The value for field AutoPlayPreview of MusicVideoJSON is not true for false.");
            }
        }
        setAutoPlayPreview(the_bool);
    }
Beispiel #8
0
    private void  fromJSONDestinationIsNow(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONTrueValue json_true = json_value.true_value();
        bool          the_bool;

        if (json_true != null)
        {
            the_bool = true;
        }
        else
        {
            JSONFalseValue json_false = json_value.false_value();
            if (json_false != null)
            {
                the_bool = false;
            }
            else
            {
                throw new Exception("The value for field DestinationIsNow of AgeCalculatorRequestedDateOutOfBoundsJSON is not true for false.");
            }
        }
        setDestinationIsNow(the_bool);
    }
Beispiel #9
0
        private void  fromJSONHasVideoCamera(JSONValue json_value, bool ignore_extras)
        {
            Debug.Assert(json_value != null);
            JSONTrueValue json_true = json_value.true_value();
            bool          the_bool;

            if (json_true != null)
            {
                the_bool = true;
            }
            else
            {
                JSONFalseValue json_false = json_value.false_value();
                if (json_false != null)
                {
                    the_bool = false;
                }
                else
                {
                    throw new Exception("The value for field HasVideoCamera of TypeSensorsJSON is not true for false.");
                }
            }
            setHasVideoCamera(the_bool);
        }
Beispiel #10
0
    private void  fromJSONIsOwned(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONTrueValue json_true = json_value.true_value();
        bool          the_bool;

        if (json_true != null)
        {
            the_bool = true;
        }
        else
        {
            JSONFalseValue json_false = json_value.false_value();
            if (json_false != null)
            {
                the_bool = false;
            }
            else
            {
                throw new Exception("The value for field IsOwned of RememberUserLocationIntentJSON is not true for false.");
            }
        }
        setIsOwned(the_bool);
    }
    private void  fromJSONDateAndOrTimeSpecInFuture(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONTrueValue json_true = json_value.true_value();
        bool          the_bool;

        if (json_true != null)
        {
            the_bool = true;
        }
        else
        {
            JSONFalseValue json_false = json_value.false_value();
            if (json_false != null)
            {
                the_bool = false;
            }
            else
            {
                throw new Exception("The value for field DateAndOrTimeSpecInFuture of HolidaysOnDateLookupInformationNuggetJSON is not true for false.");
            }
        }
        setDateAndOrTimeSpecInFuture(the_bool);
    }
Beispiel #12
0
    private void  fromJSONValue(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONTrueValue json_true = json_value.true_value();
        bool          the_bool;

        if (json_true != null)
        {
            the_bool = true;
        }
        else
        {
            JSONFalseValue json_false = json_value.false_value();
            if (json_false != null)
            {
                the_bool = false;
            }
            else
            {
                throw new Exception("The value for field Value of ReturnInformationNuggetsForMusicSearchJSON is not true for false.");
            }
        }
        setValue(the_bool);
    }
Beispiel #13
0
    private void  fromJSONFromDiceOrNumbers(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONTrueValue json_true = json_value.true_value();
        bool          the_bool;

        if (json_true != null)
        {
            the_bool = true;
        }
        else
        {
            JSONFalseValue json_false = json_value.false_value();
            if (json_false != null)
            {
                the_bool = false;
            }
            else
            {
                throw new Exception("The value for field FromDiceOrNumbers of RandomNumberGeneratorCoinFlipRequestResultJSON is not true for false.");
            }
        }
        setFromDiceOrNumbers(the_bool);
    }
Beispiel #14
0
    private void  fromJSONValue(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONTrueValue json_true = json_value.true_value();
        bool          the_bool;

        if (json_true != null)
        {
            the_bool = true;
        }
        else
        {
            JSONFalseValue json_false = json_value.false_value();
            if (json_false != null)
            {
                the_bool = false;
            }
            else
            {
                throw new Exception("The value for field Value of AllowContextFreeMusicSearchForPopularEntitiesJSON is not true for false.");
            }
        }
        setValue(the_bool);
    }
    private void  fromJSONInvalidBornDateWasGiven(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONTrueValue json_true = json_value.true_value();
        bool          the_bool;

        if (json_true != null)
        {
            the_bool = true;
        }
        else
        {
            JSONFalseValue json_false = json_value.false_value();
            if (json_false != null)
            {
                the_bool = false;
            }
            else
            {
                throw new Exception("The value for field InvalidBornDateWasGiven of AgeCalculatorStartCommandJSON is not true for false.");
            }
        }
        setInvalidBornDateWasGiven(the_bool);
    }
Beispiel #16
0
    private void  fromJSONIsMobile(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONTrueValue json_true = json_value.true_value();
        bool          the_bool;

        if (json_true != null)
        {
            the_bool = true;
        }
        else
        {
            JSONFalseValue json_false = json_value.false_value();
            if (json_false != null)
            {
                the_bool = false;
            }
            else
            {
                throw new Exception("The value for field IsMobile of RobotConfigurationJSON is not true for false.");
            }
        }
        setIsMobile(the_bool);
    }
    private void  fromJSONDestinationIsToday(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONTrueValue json_true = json_value.true_value();
        bool          the_bool;

        if (json_true != null)
        {
            the_bool = true;
        }
        else
        {
            JSONFalseValue json_false = json_value.false_value();
            if (json_false != null)
            {
                the_bool = false;
            }
            else
            {
                throw new Exception("The value for field DestinationIsToday of AgeCalculatorStartCommandJSON is not true for false.");
            }
        }
        setDestinationIsToday(the_bool);
    }
Beispiel #18
0
    private void  fromJSONIsGameOver(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONTrueValue json_true = json_value.true_value();
        bool          the_bool;

        if (json_true != null)
        {
            the_bool = true;
        }
        else
        {
            JSONFalseValue json_false = json_value.false_value();
            if (json_false != null)
            {
                the_bool = false;
            }
            else
            {
                throw new Exception("The value for field IsGameOver of BattleshipPlayerDataJSON is not true for false.");
            }
        }
        setIsGameOver(the_bool);
    }
Beispiel #19
0
    private void  fromJSONResultReference(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONTrueValue json_true = json_value.true_value();
        bool          the_bool;

        if (json_true != null)
        {
            the_bool = true;
        }
        else
        {
            JSONFalseValue json_false = json_value.false_value();
            if (json_false != null)
            {
                the_bool = false;
            }
            else
            {
                throw new Exception("The value for field ResultReference of SportsPlayersArgumentPlayerJSON is not true for false.");
            }
        }
        setResultReference(the_bool);
    }
    private void  fromJSONIsOfficial(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONTrueValue json_true = json_value.true_value();
        bool          the_bool;

        if (json_true != null)
        {
            the_bool = true;
        }
        else
        {
            JSONFalseValue json_false = json_value.false_value();
            if (json_false != null)
            {
                the_bool = false;
            }
            else
            {
                throw new Exception("The value for field IsOfficial of GeonameAttributeArgumentJSON is not true for false.");
            }
        }
        setIsOfficial(the_bool);
    }
    private void  fromJSONCountdownIsSupported(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONTrueValue json_true = json_value.true_value();
        bool          the_bool;

        if (json_true != null)
        {
            the_bool = true;
        }
        else
        {
            JSONFalseValue json_false = json_value.false_value();
            if (json_false != null)
            {
                the_bool = false;
            }
            else
            {
                throw new Exception("The value for field CountdownIsSupported of CountdownCommandJSON is not true for false.");
            }
        }
        setCountdownIsSupported(the_bool);
    }
Beispiel #22
0
        private void  fromJSONDividerBelow(JSONValue json_value, bool ignore_extras)
        {
            Debug.Assert(json_value != null);
            JSONTrueValue json_true = json_value.true_value();
            bool          the_bool;

            if (json_true != null)
            {
                the_bool = true;
            }
            else
            {
                JSONFalseValue json_false = json_value.false_value();
                if (json_false != null)
                {
                    the_bool = false;
                }
                else
                {
                    throw new Exception("The value for field DividerBelow of TypeItemsJSON is not true for false.");
                }
            }
            setDividerBelow(the_bool);
        }
    private void  fromJSONHDSpecified(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONTrueValue json_true = json_value.true_value();
        bool          the_bool;

        if (json_true != null)
        {
            the_bool = true;
        }
        else
        {
            JSONFalseValue json_false = json_value.false_value();
            if (json_false != null)
            {
                the_bool = false;
            }
            else
            {
                throw new Exception("The value for field HDSpecified of FMChannelCommandIntentJSON is not true for false.");
            }
        }
        setHDSpecified(the_bool);
    }
Beispiel #24
0
    private void  fromJSONUserRequestedAutoPlay(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONTrueValue json_true = json_value.true_value();
        bool          the_bool;

        if (json_true != null)
        {
            the_bool = true;
        }
        else
        {
            JSONFalseValue json_false = json_value.false_value();
            if (json_false != null)
            {
                the_bool = false;
            }
            else
            {
                throw new Exception("The value for field UserRequestedAutoPlay of MusicConversationStateElementJSON is not true for false.");
            }
        }
        setUserRequestedAutoPlay(the_bool);
    }
Beispiel #25
0
    private void  fromJSONValue(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONTrueValue json_true = json_value.true_value();
        bool          the_bool;

        if (json_true != null)
        {
            the_bool = true;
        }
        else
        {
            JSONFalseValue json_false = json_value.false_value();
            if (json_false != null)
            {
                the_bool = false;
            }
            else
            {
                throw new Exception("The value for field Value of RadioControlRecognizeNorthAmericanAMBandJSON is not true for false.");
            }
        }
        setValue(the_bool);
    }
Beispiel #26
0
    private void  fromJSONSafeToStopAudio(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONTrueValue json_true = json_value.true_value();
        bool          the_bool;

        if (json_true != null)
        {
            the_bool = true;
        }
        else
        {
            JSONFalseValue json_false = json_value.false_value();
            if (json_false != null)
            {
                the_bool = false;
            }
            else
            {
                throw new Exception("The value for field SafeToStopAudio of HoundPartialTranscriptJSON is not true for false.");
            }
        }
        setSafeToStopAudio(the_bool);
    }
Beispiel #27
0
    private void  fromJSONPageIsGlobal(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONTrueValue json_true = json_value.true_value();
        bool          the_bool;

        if (json_true != null)
        {
            the_bool = true;
        }
        else
        {
            JSONFalseValue json_false = json_value.false_value();
            if (json_false != null)
            {
                the_bool = false;
            }
            else
            {
                throw new Exception("The value for field PageIsGlobal of StoredPageMatchWriteCommandJSON is not true for false.");
            }
        }
        setPageIsGlobal(the_bool);
    }
Beispiel #28
0
    private void  fromJSONRequestedCoordinates(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONTrueValue json_true = json_value.true_value();
        bool          the_bool;

        if (json_true != null)
        {
            the_bool = true;
        }
        else
        {
            JSONFalseValue json_false = json_value.false_value();
            if (json_false != null)
            {
                the_bool = false;
            }
            else
            {
                throw new Exception("The value for field RequestedCoordinates of ShowMapInformationNuggetJSON is not true for false.");
            }
        }
        setRequestedCoordinates(the_bool);
    }
    private void  fromJSONStartDateTimeInferred(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONTrueValue json_true = json_value.true_value();
        bool          the_bool;

        if (json_true != null)
        {
            the_bool = true;
        }
        else
        {
            JSONFalseValue json_false = json_value.false_value();
            if (json_false != null)
            {
                the_bool = false;
            }
            else
            {
                throw new Exception("The value for field StartDateTimeInferred of DateTimeSpecRangeSetOfTimeJSON is not true for false.");
            }
        }
        setStartDateTimeInferred(the_bool);
    }
Beispiel #30
0
    private void  fromJSONIsToInclusive(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONTrueValue json_true = json_value.true_value();
        bool          the_bool;

        if (json_true != null)
        {
            the_bool = true;
        }
        else
        {
            JSONFalseValue json_false = json_value.false_value();
            if (json_false != null)
            {
                the_bool = false;
            }
            else
            {
                throw new Exception("The value for field IsToInclusive of PriceRangeJSON is not true for false.");
            }
        }
        setIsToInclusive(the_bool);
    }