예제 #1
0
    private void  fromJSONDisambiguationOrderedList(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONArrayValue json_array1 = json_value.array_value();

        if (json_array1 == null)
        {
            throw new Exception("The value for field DisambiguationOrderedList of SMSClientStateJSON is not an array.");
        }
        int           count1 = json_array1.componentCount();
        List <string> vector_DisambiguationOrderedList1 = new List <string>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            JSONStringValue json_string = json_array1.component(num1).string_value();
            if (json_string == null)
            {
                throw new Exception("The value for an element of field DisambiguationOrderedList of SMSClientStateJSON is not a string.");
            }
            vector_DisambiguationOrderedList1.Add(json_string.getData());
        }
        initDisambiguationOrderedList();
        for (int num1 = 0; num1 < vector_DisambiguationOrderedList1.Count; ++num1)
        {
            appendDisambiguationOrderedList(vector_DisambiguationOrderedList1[num1]);
        }
        for (int num1 = 0; num1 < vector_DisambiguationOrderedList1.Count; ++num1)
        {
        }
    }
예제 #2
0
    private void  fromJSONErrors(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONArrayValue json_array1 = json_value.array_value();

        if (json_array1 == null)
        {
            throw new Exception("The value for field Errors of UnitConverterInformationNuggetJSON is not an array.");
        }
        int count1 = json_array1.componentCount();

        if (count1 < 1)
        {
            throw new Exception("The value for field Errors of UnitConverterInformationNuggetJSON has too few elements.");
        }
        List <UnitConversionErrorJSON> vector_Errors1 = new List <UnitConversionErrorJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            UnitConversionErrorJSON convert_classy = UnitConversionErrorJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_Errors1.Add(convert_classy);
        }
        Debug.Assert(vector_Errors1.Count >= 1);
        initErrors();
        for (int num2 = 0; num2 < vector_Errors1.Count; ++num2)
        {
            appendErrors(vector_Errors1[num2]);
        }
        for (int num1 = 0; num1 < vector_Errors1.Count; ++num1)
        {
        }
    }
예제 #3
0
    private void  fromJSONAlreadyAskedUser(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONArrayValue json_array1 = json_value.array_value();

        if (json_array1 == null)
        {
            throw new Exception("The value for field AlreadyAskedUser of FlightBookingModeJSON is not an array.");
        }
        int count1 = json_array1.componentCount();
        List <FlightBookingLookupParameterJSON> vector_AlreadyAskedUser1 = new List <FlightBookingLookupParameterJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            FlightBookingLookupParameterJSON convert_classy = FlightBookingLookupParameterJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_AlreadyAskedUser1.Add(convert_classy);
        }
        initAlreadyAskedUser();
        for (int num1 = 0; num1 < vector_AlreadyAskedUser1.Count; ++num1)
        {
            appendAlreadyAskedUser(vector_AlreadyAskedUser1[num1]);
        }
        for (int num1 = 0; num1 < vector_AlreadyAskedUser1.Count; ++num1)
        {
        }
    }
예제 #4
0
    private void  fromJSONtimes(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONArrayValue json_array1 = json_value.array_value();

        if (json_array1 == null)
        {
            throw new Exception("The value for field times of UberTimeEstimatesResponseJSON is not an array.");
        }
        int count1 = json_array1.componentCount();
        List <UberTimeEstimateDetailsJSON> vector_times1 = new List <UberTimeEstimateDetailsJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            UberTimeEstimateDetailsJSON convert_classy = UberTimeEstimateDetailsJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_times1.Add(convert_classy);
        }
        inittimes();
        for (int num1 = 0; num1 < vector_times1.Count; ++num1)
        {
            appendtimes(vector_times1[num1]);
        }
        for (int num1 = 0; num1 < vector_times1.Count; ++num1)
        {
        }
    }
예제 #5
0
    private void  fromJSONChoices(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONArrayValue json_array1 = json_value.array_value();

        if (json_array1 == null)
        {
            throw new Exception("The value for field Choices of WhichContactChoicesJSON is not an array.");
        }
        int count1 = json_array1.componentCount();

        if (count1 < 2)
        {
            throw new Exception("The value for field Choices of WhichContactChoicesJSON has too few elements.");
        }
        List <TypeChoicesJSON> vector_Choices1 = new List <TypeChoicesJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            TypeChoicesJSON convert_classy = TypeChoicesJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_Choices1.Add(convert_classy);
        }
        Debug.Assert(vector_Choices1.Count >= 2);
        initChoices();
        for (int num3 = 0; num3 < vector_Choices1.Count; ++num3)
        {
            appendChoices(vector_Choices1[num3]);
        }
        for (int num1 = 0; num1 < vector_Choices1.Count; ++num1)
        {
        }
    }
예제 #6
0
    private void  fromJSONMapLocationSpecs(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONArrayValue json_array1 = json_value.array_value();

        if (json_array1 == null)
        {
            throw new Exception("The value for field MapLocationSpecs of ShowMapInformationNuggetJSON is not an array.");
        }
        int count1 = json_array1.componentCount();

        if (count1 < 1)
        {
            throw new Exception("The value for field MapLocationSpecs of ShowMapInformationNuggetJSON has too few elements.");
        }
        List <MapLocationWithDescriptionJSON> vector_MapLocationSpecs1 = new List <MapLocationWithDescriptionJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            MapLocationWithDescriptionJSON convert_classy = MapLocationWithDescriptionJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_MapLocationSpecs1.Add(convert_classy);
        }
        Debug.Assert(vector_MapLocationSpecs1.Count >= 1);
        initMapLocationSpecs();
        for (int num1 = 0; num1 < vector_MapLocationSpecs1.Count; ++num1)
        {
            appendMapLocationSpecs(vector_MapLocationSpecs1[num1]);
        }
        for (int num1 = 0; num1 < vector_MapLocationSpecs1.Count; ++num1)
        {
        }
    }
예제 #7
0
    private void  fromJSONPhoneNumbers(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONArrayValue json_array1 = json_value.array_value();

        if (json_array1 == null)
        {
            throw new Exception("The value for field PhoneNumbers of PhoneNumberDisambiguationCandidateJSON is not an array.");
        }
        int count1 = json_array1.componentCount();
        List <TypePhoneNumbersJSON> vector_PhoneNumbers1 = new List <TypePhoneNumbersJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            TypePhoneNumbersJSON convert_classy = TypePhoneNumbersJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_PhoneNumbers1.Add(convert_classy);
        }
        initPhoneNumbers();
        for (int num1 = 0; num1 < vector_PhoneNumbers1.Count; ++num1)
        {
            appendPhoneNumbers(vector_PhoneNumbers1[num1]);
        }
        for (int num1 = 0; num1 < vector_PhoneNumbers1.Count; ++num1)
        {
        }
    }
예제 #8
0
    private void  fromJSONerrors(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONArrayValue json_array1 = json_value.array_value();

        if (json_array1 == null)
        {
            throw new Exception("The value for field errors of GenericUberErrorResponseJSON is not an array.");
        }
        int count1 = json_array1.componentCount();

        if (count1 < 1)
        {
            throw new Exception("The value for field errors of GenericUberErrorResponseJSON has too few elements.");
        }
        List <GenericUberErrorJSON> vector_errors1 = new List <GenericUberErrorJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            GenericUberErrorJSON convert_classy = GenericUberErrorJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_errors1.Add(convert_classy);
        }
        Debug.Assert(vector_errors1.Count >= 1);
        initerrors();
        for (int num1 = 0; num1 < vector_errors1.Count; ++num1)
        {
            appenderrors(vector_errors1[num1]);
        }
        for (int num1 = 0; num1 < vector_errors1.Count; ++num1)
        {
        }
    }
예제 #9
0
    private void  fromJSONLeagues(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONArrayValue json_array1 = json_value.array_value();

        if (json_array1 == null)
        {
            throw new Exception("The value for field Leagues of SportsLeaguesResponseStateJSON is not an array.");
        }
        int count1 = json_array1.componentCount();

        if (count1 < 1)
        {
            throw new Exception("The value for field Leagues of SportsLeaguesResponseStateJSON has too few elements.");
        }
        List <SportsLeagueCodeJSON> vector_Leagues1 = new List <SportsLeagueCodeJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            SportsLeagueCodeJSON convert_classy = SportsLeagueCodeJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_Leagues1.Add(convert_classy);
        }
        Debug.Assert(vector_Leagues1.Count >= 1);
        initLeagues();
        for (int num1 = 0; num1 < vector_Leagues1.Count; ++num1)
        {
            appendLeagues(vector_Leagues1[num1]);
        }
        for (int num1 = 0; num1 < vector_Leagues1.Count; ++num1)
        {
        }
    }
예제 #10
0
    private void  fromJSONPlaylists(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONArrayValue json_array1 = json_value.array_value();

        if (json_array1 == null)
        {
            throw new Exception("The value for field Playlists of MusicClientStateJSON is not an array.");
        }
        int count1 = json_array1.componentCount();
        List <PlaylistStateItemJSON> vector_Playlists1 = new List <PlaylistStateItemJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            PlaylistStateItemJSON convert_classy = PlaylistStateItemJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_Playlists1.Add(convert_classy);
        }
        initPlaylists();
        for (int num4 = 0; num4 < vector_Playlists1.Count; ++num4)
        {
            appendPlaylists(vector_Playlists1[num4]);
        }
        for (int num1 = 0; num1 < vector_Playlists1.Count; ++num1)
        {
        }
    }
예제 #11
0
    private void  fromJSONLabeledPhoneNumbers(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONArrayValue json_array1 = json_value.array_value();

        if (json_array1 == null)
        {
            throw new Exception("The value for field LabeledPhoneNumbers of SMSContactJSON is not an array.");
        }
        int count1 = json_array1.componentCount();
        List <LabeledPhoneNumberJSON> vector_LabeledPhoneNumbers1 = new List <LabeledPhoneNumberJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            LabeledPhoneNumberJSON convert_classy = LabeledPhoneNumberJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_LabeledPhoneNumbers1.Add(convert_classy);
        }
        initLabeledPhoneNumbers();
        for (int num1 = 0; num1 < vector_LabeledPhoneNumbers1.Count; ++num1)
        {
            appendLabeledPhoneNumbers(vector_LabeledPhoneNumbers1[num1]);
        }
        for (int num1 = 0; num1 < vector_LabeledPhoneNumbers1.Count; ++num1)
        {
        }
    }
예제 #12
0
    private void  fromJSONSeriesGames(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONArrayValue json_array1 = json_value.array_value();

        if (json_array1 == null)
        {
            throw new Exception("The value for field SeriesGames of SportsPlayoffTriviaSeriesJSON is not an array.");
        }
        int count1 = json_array1.componentCount();
        List <SportsGameJSON> vector_SeriesGames1 = new List <SportsGameJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            SportsGameJSON convert_classy = SportsGameJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_SeriesGames1.Add(convert_classy);
        }
        initSeriesGames();
        for (int num1 = 0; num1 < vector_SeriesGames1.Count; ++num1)
        {
            appendSeriesGames(vector_SeriesGames1[num1]);
        }
        for (int num1 = 0; num1 < vector_SeriesGames1.Count; ++num1)
        {
        }
    }
예제 #13
0
    private void  fromJSONValues(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONArrayValue json_array1 = json_value.array_value();

        if (json_array1 == null)
        {
            throw new Exception("The value for field Values of RandomNumberGeneratorCoinFlipRequestResultJSON is not an array.");
        }
        int count1 = json_array1.componentCount();

        if (count1 < 1)
        {
            throw new Exception("The value for field Values of RandomNumberGeneratorCoinFlipRequestResultJSON has too few elements.");
        }
        List <TypeValues> vector_Values1 = new List <TypeValues>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            JSONStringValue json_string = json_array1.component(num1).string_value();
            if (json_string == null)
            {
                throw new Exception("The value for an element of field Values of RandomNumberGeneratorCoinFlipRequestResultJSON is not a string.");
            }
            TypeValues the_enum;
            switch (json_string.getData()[0])
            {
            case 'H':
                if ((String.Compare(json_string.getData(), 1, "eads", 0, 4, false) == 0) && (json_string.getData().Length == 5))
                {
                    the_enum = TypeValues.Values_Heads;
                    goto enum_is_done;
                }
                break;

            case 'T':
                if ((String.Compare(json_string.getData(), 1, "ails", 0, 4, false) == 0) && (json_string.getData().Length == 5))
                {
                    the_enum = TypeValues.Values_Tails;
                    goto enum_is_done;
                }
                break;

            default:
                break;
            }
            throw new Exception("The value for an element of field Values of RandomNumberGeneratorCoinFlipRequestResultJSON is not one of the legal strings.");
            enum_is_done :;
            vector_Values1.Add(the_enum);
        }
        Debug.Assert(vector_Values1.Count >= 1);
        initValues();
        for (int num1 = 0; num1 < vector_Values1.Count; ++num1)
        {
            appendValues(vector_Values1[num1]);
        }
        for (int num1 = 0; num1 < vector_Values1.Count; ++num1)
        {
        }
    }
예제 #14
0
    private JSONValue  extraValuesToJSON()
    {
        JSONArrayValue generated_array_1_Values = new JSONArrayValue();

        for (int num1 = 0; num1 < storeValues.Count; ++num1)
        {
            JSONStringValue generated_string_Values;
            switch (storeValues[num1])
            {
            case TypeValues.Values_Heads:
                generated_string_Values = new JSONStringValue("Heads");
                break;

            case TypeValues.Values_Tails:
                generated_string_Values = new JSONStringValue("Tails");
                break;

            default:
                Debug.Assert(false);
                generated_string_Values = null;
                break;
            }
            generated_array_1_Values.appendComponent(generated_string_Values);
        }
        return(generated_array_1_Values);
    }
예제 #15
0
    private void  fromJSONShipLocations(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONArrayValue json_array1 = json_value.array_value();

        if (json_array1 == null)
        {
            throw new Exception("The value for field ShipLocations of BattleshipPlayerDataJSON is not an array.");
        }
        int count1 = json_array1.componentCount();
        List <BattleshipShipTypeJSON> vector_ShipLocations1 = new List <BattleshipShipTypeJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            BattleshipShipTypeJSON convert_classy = BattleshipShipTypeJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_ShipLocations1.Add(convert_classy);
        }
        initShipLocations();
        for (int num2 = 0; num2 < vector_ShipLocations1.Count; ++num2)
        {
            appendShipLocations(vector_ShipLocations1[num2]);
        }
        for (int num1 = 0; num1 < vector_ShipLocations1.Count; ++num1)
        {
        }
    }
    private void  fromJSONContacts(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONArrayValue json_array1 = json_value.array_value();

        if (json_array1 == null)
        {
            throw new Exception("The value for field Contacts of CallExactContactCommandJSON is not an array.");
        }
        int count1 = json_array1.componentCount();

        if (count1 < 1)
        {
            throw new Exception("The value for field Contacts of CallExactContactCommandJSON has too few elements.");
        }
        List <OneContactJSON> vector_Contacts1 = new List <OneContactJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            OneContactJSON convert_classy = OneContactJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_Contacts1.Add(convert_classy);
        }
        Debug.Assert(vector_Contacts1.Count >= 1);
        initContacts();
        for (int num1 = 0; num1 < vector_Contacts1.Count; ++num1)
        {
            appendContacts(vector_Contacts1[num1]);
        }
        for (int num1 = 0; num1 < vector_Contacts1.Count; ++num1)
        {
        }
    }
예제 #17
0
    private void  fromJSONItems(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONArrayValue json_array1 = json_value.array_value();

        if (json_array1 == null)
        {
            throw new Exception("The value for field Items of VerticalTemplateListTemplateJSON is not an array.");
        }
        int count1 = json_array1.componentCount();

        if (count1 < 1)
        {
            throw new Exception("The value for field Items of VerticalTemplateListTemplateJSON has too few elements.");
        }
        List <TypeItemsJSON> vector_Items1 = new List <TypeItemsJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            TypeItemsJSON convert_classy = TypeItemsJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_Items1.Add(convert_classy);
        }
        Debug.Assert(vector_Items1.Count >= 1);
        initItems();
        for (int num1 = 0; num1 < vector_Items1.Count; ++num1)
        {
            appendItems(vector_Items1[num1]);
        }
        for (int num1 = 0; num1 < vector_Items1.Count; ++num1)
        {
        }
    }
        private void  fromJSONConversionRows(JSONValue json_value, bool ignore_extras)
        {
            Debug.Assert(json_value != null);
            JSONArrayValue json_array1 = json_value.array_value();

            if (json_array1 == null)
            {
                throw new Exception("The value for field ConversionRows of TypeNativeDataJSON is not an array.");
            }
            int count1 = json_array1.componentCount();
            List <ConversionRowJSON> vector_ConversionRows1 = new List <ConversionRowJSON>(count1);

            for (int num1 = 0; num1 < count1; ++num1)
            {
                ConversionRowJSON convert_classy = ConversionRowJSON.from_json(json_array1.component(num1), ignore_extras, true);
                vector_ConversionRows1.Add(convert_classy);
            }
            initConversionRows();
            for (int num1 = 0; num1 < vector_ConversionRows1.Count; ++num1)
            {
                appendConversionRows(vector_ConversionRows1[num1]);
            }
            for (int num1 = 0; num1 < vector_ConversionRows1.Count; ++num1)
            {
            }
        }
    private void  fromJSONAliases(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONArrayValue json_array1 = json_value.array_value();

        if (json_array1 == null)
        {
            throw new Exception("The value for field Aliases of OneInstalledAppJSON is not an array.");
        }
        int           count1          = json_array1.componentCount();
        List <string> vector_Aliases1 = new List <string>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            JSONStringValue json_string = json_array1.component(num1).string_value();
            if (json_string == null)
            {
                throw new Exception("The value for an element of field Aliases of OneInstalledAppJSON is not a string.");
            }
            vector_Aliases1.Add(json_string.getData());
        }
        initAliases();
        for (int num1 = 0; num1 < vector_Aliases1.Count; ++num1)
        {
            appendAliases(vector_Aliases1[num1]);
        }
        for (int num1 = 0; num1 < vector_Aliases1.Count; ++num1)
        {
        }
    }
예제 #20
0
    private void  fromJSONHosts(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONArrayValue json_array1 = json_value.array_value();

        if (json_array1 == null)
        {
            throw new Exception("The value for field Hosts of SportsOlympicsBasicAttributeArgumentHostJSON is not an array.");
        }
        int count1 = json_array1.componentCount();

        if (count1 < 1)
        {
            throw new Exception("The value for field Hosts of SportsOlympicsBasicAttributeArgumentHostJSON has too few elements.");
        }
        List <SportsOlympicsGamesCodeJSON> vector_Hosts1 = new List <SportsOlympicsGamesCodeJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            SportsOlympicsGamesCodeJSON convert_classy = SportsOlympicsGamesCodeJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_Hosts1.Add(convert_classy);
        }
        Debug.Assert(vector_Hosts1.Count >= 1);
        initHosts();
        for (int num1 = 0; num1 < vector_Hosts1.Count; ++num1)
        {
            appendHosts(vector_Hosts1[num1]);
        }
        for (int num1 = 0; num1 < vector_Hosts1.Count; ++num1)
        {
        }
    }
예제 #21
0
    private void  fromJSONProperties(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONArrayValue json_array1 = json_value.array_value();

        if (json_array1 == null)
        {
            throw new Exception("The value for field Properties of HomeAutomationQueryHintJSON is not an array.");
        }
        int count1 = json_array1.componentCount();

        if (count1 < 1)
        {
            throw new Exception("The value for field Properties of HomeAutomationQueryHintJSON has too few elements.");
        }
        List <HomeAutomationPropertyJSON> vector_Properties1 = new List <HomeAutomationPropertyJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            HomeAutomationPropertyJSON convert_classy = HomeAutomationPropertyJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_Properties1.Add(convert_classy);
        }
        Debug.Assert(vector_Properties1.Count >= 1);
        initProperties();
        for (int num2 = 0; num2 < vector_Properties1.Count; ++num2)
        {
            appendProperties(vector_Properties1[num2]);
        }
        for (int num1 = 0; num1 < vector_Properties1.Count; ++num1)
        {
        }
    }
예제 #22
0
    private void  fromJSONFundamentals(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONArrayValue json_array1 = json_value.array_value();

        if (json_array1 == null)
        {
            throw new Exception("The value for field Fundamentals of StockFundamentalsJSON is not an array.");
        }
        int count1 = json_array1.componentCount();
        List <StockFundamentalJSON> vector_Fundamentals1 = new List <StockFundamentalJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            StockFundamentalJSON convert_classy = StockFundamentalJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_Fundamentals1.Add(convert_classy);
        }
        initFundamentals();
        for (int num1 = 0; num1 < vector_Fundamentals1.Count; ++num1)
        {
            appendFundamentals(vector_Fundamentals1[num1]);
        }
        for (int num1 = 0; num1 < vector_Fundamentals1.Count; ++num1)
        {
        }
    }
예제 #23
0
    private void  fromJSONValue(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONArrayValue json_array1 = json_value.array_value();

        if (json_array1 == null)
        {
            throw new Exception("The value for field Value of UserAppsJSON is not an array.");
        }
        int count1 = json_array1.componentCount();
        List <AppSpecJSON> vector_Value1 = new List <AppSpecJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            AppSpecJSON convert_classy = AppSpecJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_Value1.Add(convert_classy);
        }
        initValue();
        for (int num1 = 0; num1 < vector_Value1.Count; ++num1)
        {
            appendValue(vector_Value1[num1]);
        }
        for (int num1 = 0; num1 < vector_Value1.Count; ++num1)
        {
        }
    }
예제 #24
0
    private void  fromJSONQueryData(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONArrayValue json_array1 = json_value.array_value();

        if (json_array1 == null)
        {
            throw new Exception("The value for field QueryData of SportsPlayersInformationNuggetJSON is not an array.");
        }
        int count1 = json_array1.componentCount();

        if (count1 < 1)
        {
            throw new Exception("The value for field QueryData of SportsPlayersInformationNuggetJSON has too few elements.");
        }
        List <SportsPlayersQueryDataJSON> vector_QueryData1 = new List <SportsPlayersQueryDataJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            SportsPlayersQueryDataJSON convert_classy = SportsPlayersQueryDataJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_QueryData1.Add(convert_classy);
        }
        Debug.Assert(vector_QueryData1.Count >= 1);
        initQueryData();
        for (int num1 = 0; num1 < vector_QueryData1.Count; ++num1)
        {
            appendQueryData(vector_QueryData1[num1]);
        }
        for (int num1 = 0; num1 < vector_QueryData1.Count; ++num1)
        {
        }
    }
예제 #25
0
    private void  fromJSONMusicThirdPartyIds(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONArrayValue json_array1 = json_value.array_value();

        if (json_array1 == null)
        {
            throw new Exception("The value for field MusicThirdPartyIds of MusicAlbumBaseJSON is not an array.");
        }
        int count1 = json_array1.componentCount();

        if (count1 < 1)
        {
            throw new Exception("The value for field MusicThirdPartyIds of MusicAlbumBaseJSON has too few elements.");
        }
        List <MusicThirdPartyIdListJSON> vector_MusicThirdPartyIds1 = new List <MusicThirdPartyIdListJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            MusicThirdPartyIdListJSON convert_classy = MusicThirdPartyIdListJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_MusicThirdPartyIds1.Add(convert_classy);
        }
        Debug.Assert(vector_MusicThirdPartyIds1.Count >= 1);
        initMusicThirdPartyIds();
        for (int num2 = 0; num2 < vector_MusicThirdPartyIds1.Count; ++num2)
        {
            appendMusicThirdPartyIds(vector_MusicThirdPartyIds1[num2]);
        }
        for (int num1 = 0; num1 < vector_MusicThirdPartyIds1.Count; ++num1)
        {
        }
    }
예제 #26
0
    private void  fromJSONPlayers(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONArrayValue json_array1 = json_value.array_value();

        if (json_array1 == null)
        {
            throw new Exception("The value for field Players of SportsPlayersInformationNuggetJSON is not an array.");
        }
        int count1 = json_array1.componentCount();
        List <SportsPlayerJSON> vector_Players1 = new List <SportsPlayerJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            SportsPlayerJSON convert_classy = SportsPlayerJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_Players1.Add(convert_classy);
        }
        initPlayers();
        for (int num2 = 0; num2 < vector_Players1.Count; ++num2)
        {
            appendPlayers(vector_Players1[num2]);
        }
        for (int num1 = 0; num1 < vector_Players1.Count; ++num1)
        {
        }
    }
    private void  fromJSONContactEntries(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONArrayValue json_array1 = json_value.array_value();

        if (json_array1 == null)
        {
            throw new Exception("The value for field ContactEntries of ContactWithTerrierExpressionJSON is not an array.");
        }
        int count1 = json_array1.componentCount();
        List <OneContactJSON> vector_ContactEntries1 = new List <OneContactJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            OneContactJSON convert_classy = OneContactJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_ContactEntries1.Add(convert_classy);
        }
        initContactEntries();
        for (int num1 = 0; num1 < vector_ContactEntries1.Count; ++num1)
        {
            appendContactEntries(vector_ContactEntries1[num1]);
        }
        for (int num1 = 0; num1 < vector_ContactEntries1.Count; ++num1)
        {
        }
    }
예제 #28
0
    private void  fromJSONMapLocations(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONArrayValue json_array1 = json_value.array_value();

        if (json_array1 == null)
        {
            throw new Exception("The value for field MapLocations of DisambiguateLocationQueryStateJSON is not an array.");
        }
        int count1 = json_array1.componentCount();

        if (count1 < 2)
        {
            throw new Exception("The value for field MapLocations of DisambiguateLocationQueryStateJSON has too few elements.");
        }
        List <AnnotatedMapLocationJSON> vector_MapLocations1 = new List <AnnotatedMapLocationJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            AnnotatedMapLocationJSON convert_classy = AnnotatedMapLocationJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_MapLocations1.Add(convert_classy);
        }
        Debug.Assert(vector_MapLocations1.Count >= 2);
        initMapLocations();
        for (int num1 = 0; num1 < vector_MapLocations1.Count; ++num1)
        {
            appendMapLocations(vector_MapLocations1[num1]);
        }
        for (int num1 = 0; num1 < vector_MapLocations1.Count; ++num1)
        {
        }
    }
예제 #29
0
    private void  fromJSONWrittenHints(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONArrayValue json_array1 = json_value.array_value();

        if (json_array1 == null)
        {
            throw new Exception("The value for field WrittenHints of FlightBookingModeJSON is not an array.");
        }
        int           count1 = json_array1.componentCount();
        List <string> vector_WrittenHints1 = new List <string>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            JSONStringValue json_string = json_array1.component(num1).string_value();
            if (json_string == null)
            {
                throw new Exception("The value for an element of field WrittenHints of FlightBookingModeJSON is not a string.");
            }
            vector_WrittenHints1.Add(json_string.getData());
        }
        initWrittenHints();
        for (int num2 = 0; num2 < vector_WrittenHints1.Count; ++num2)
        {
            appendWrittenHints(vector_WrittenHints1[num2]);
        }
        for (int num1 = 0; num1 < vector_WrittenHints1.Count; ++num1)
        {
        }
    }
예제 #30
0
    private void  fromJSONHotelSearchResults(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        JSONArrayValue json_array1 = json_value.array_value();

        if (json_array1 == null)
        {
            throw new Exception("The value for field HotelSearchResults of HotelSearchConversationStateElementJSON is not an array.");
        }
        int count1 = json_array1.componentCount();
        List <HotelJSON> vector_HotelSearchResults1 = new List <HotelJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            HotelJSON convert_classy = HotelJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_HotelSearchResults1.Add(convert_classy);
        }
        initHotelSearchResults();
        for (int num1 = 0; num1 < vector_HotelSearchResults1.Count; ++num1)
        {
            appendHotelSearchResults(vector_HotelSearchResults1[num1]);
        }
        for (int num1 = 0; num1 < vector_HotelSearchResults1.Count; ++num1)
        {
        }
    }