Beispiel #1
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)
        {
        }
    }
Beispiel #2
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 StockFundamentalsSetJSON 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)
        {
        }
    }
Beispiel #3
0
    private void  fromJSONRoomsList(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 RoomsList of RobotSetKnownRoomsCommandIntentJSON is not an array.");
        }
        int             count1            = json_array1.componentCount();
        List <RoomJSON> vector_RoomsList1 = new List <RoomJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            RoomJSON convert_classy = RoomJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_RoomsList1.Add(convert_classy);
        }
        initRoomsList();
        for (int num1 = 0; num1 < vector_RoomsList1.Count; ++num1)
        {
            appendRoomsList(vector_RoomsList1[num1]);
        }
        for (int num1 = 0; num1 < vector_RoomsList1.Count; ++num1)
        {
        }
    }
Beispiel #4
0
    private void  fromJSONStandings(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 Standings of SportsStandingsInformationNuggetJSON is not an array.");
        }
        int count1 = json_array1.componentCount();

        if (count1 < 1)
        {
            throw new Exception("The value for field Standings of SportsStandingsInformationNuggetJSON has too few elements.");
        }
        List <SportsStandingsJSON> vector_Standings1 = new List <SportsStandingsJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            SportsStandingsJSON convert_classy = SportsStandingsJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_Standings1.Add(convert_classy);
        }
        Debug.Assert(vector_Standings1.Count >= 1);
        initStandings();
        for (int num2 = 0; num2 < vector_Standings1.Count; ++num2)
        {
            appendStandings(vector_Standings1[num2]);
        }
        for (int num1 = 0; num1 < vector_Standings1.Count; ++num1)
        {
        }
    }
Beispiel #5
0
    private void  fromJSONVideos(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 Videos of MusicChartsCommandNativeDataJSON is not an array.");
        }
        int count1 = json_array1.componentCount();
        List <MusicVideoJSON> vector_Videos1 = new List <MusicVideoJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            MusicVideoJSON convert_classy = MusicVideoJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_Videos1.Add(convert_classy);
        }
        initVideos();
        for (int num1 = 0; num1 < vector_Videos1.Count; ++num1)
        {
            appendVideos(vector_Videos1[num1]);
        }
        for (int num1 = 0; num1 < vector_Videos1.Count; ++num1)
        {
        }
    }
Beispiel #6
0
    private void  fromJSONEnabledLeagues(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 EnabledLeagues of SportsLeagueControlJSON is not an array.");
        }
        int count1 = json_array1.componentCount();

        if (count1 < 1)
        {
            throw new Exception("The value for field EnabledLeagues of SportsLeagueControlJSON has too few elements.");
        }
        List <SportsLeagueCodeJSON> vector_EnabledLeagues1 = 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_EnabledLeagues1.Add(convert_classy);
        }
        Debug.Assert(vector_EnabledLeagues1.Count >= 1);
        initEnabledLeagues();
        for (int num1 = 0; num1 < vector_EnabledLeagues1.Count; ++num1)
        {
            appendEnabledLeagues(vector_EnabledLeagues1[num1]);
        }
        for (int num1 = 0; num1 < vector_EnabledLeagues1.Count; ++num1)
        {
        }
    }
Beispiel #7
0
    private void  fromJSONDisambiguationCandidates(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 DisambiguationCandidates of DisambiguatePhoneNumberJSON is not an array.");
        }
        int count1 = json_array1.componentCount();
        List <PhoneNumberDisambiguationCandidateJSON> vector_DisambiguationCandidates1 = new List <PhoneNumberDisambiguationCandidateJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            PhoneNumberDisambiguationCandidateJSON convert_classy = PhoneNumberDisambiguationCandidateJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_DisambiguationCandidates1.Add(convert_classy);
        }
        initDisambiguationCandidates();
        for (int num1 = 0; num1 < vector_DisambiguationCandidates1.Count; ++num1)
        {
            appendDisambiguationCandidates(vector_DisambiguationCandidates1[num1]);
        }
        for (int num1 = 0; num1 < vector_DisambiguationCandidates1.Count; ++num1)
        {
        }
    }
Beispiel #8
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)
        {
        }
    }
Beispiel #9
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)
        {
        }
    }
Beispiel #10
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)
        {
        }
    }
Beispiel #11
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)
        {
        }
    }
Beispiel #12
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)
        {
        }
    }
    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)
        {
        }
    }
Beispiel #14
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)
        {
        }
    }
Beispiel #15
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 CarSeatSelectionJSON is not an array.");
        }
        int count1 = json_array1.componentCount();

        if (count1 < 1)
        {
            throw new Exception("The value for field Value of CarSeatSelectionJSON has too few elements.");
        }
        List <CarSeatSelectionEnumJSON> vector_Value1 = new List <CarSeatSelectionEnumJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            CarSeatSelectionEnumJSON convert_classy = CarSeatSelectionEnumJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_Value1.Add(convert_classy);
        }
        Debug.Assert(vector_Value1.Count >= 1);
        initValue();
        for (int num1 = 0; num1 < vector_Value1.Count; ++num1)
        {
            appendValue(vector_Value1[num1]);
        }
        for (int num1 = 0; num1 < vector_Value1.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)
        {
        }
    }
Beispiel #17
0
    private void  fromJSONRequestedListings(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 RequestedListings of StockQueryBlockJSON is not an array.");
        }
        int count1 = json_array1.componentCount();
        List <StockRequestedListingJSON> vector_RequestedListings1 = new List <StockRequestedListingJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            StockRequestedListingJSON convert_classy = StockRequestedListingJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_RequestedListings1.Add(convert_classy);
        }
        initRequestedListings();
        for (int num2 = 0; num2 < vector_RequestedListings1.Count; ++num2)
        {
            appendRequestedListings(vector_RequestedListings1[num2]);
        }
        for (int num1 = 0; num1 < vector_RequestedListings1.Count; ++num1)
        {
        }
    }
Beispiel #18
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)
        {
        }
    }
Beispiel #19
0
    private void  fromJSONExcludes(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 Excludes of FlightTravelLocationFilterJSON is not an array.");
        }
        int count1 = json_array1.componentCount();

        if (count1 < 1)
        {
            throw new Exception("The value for field Excludes of FlightTravelLocationFilterJSON has too few elements.");
        }
        List <FlightTravelLocationJSON> vector_Excludes1 = new List <FlightTravelLocationJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            FlightTravelLocationJSON convert_classy = FlightTravelLocationJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_Excludes1.Add(convert_classy);
        }
        Debug.Assert(vector_Excludes1.Count >= 1);
        initExcludes();
        for (int num2 = 0; num2 < vector_Excludes1.Count; ++num2)
        {
            appendExcludes(vector_Excludes1[num2]);
        }
        for (int num1 = 0; num1 < vector_Excludes1.Count; ++num1)
        {
        }
    }
Beispiel #20
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)
        {
        }
    }
    private void  fromJSONConversions(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 Conversions of CurrencyConverterInformationNuggetJSON is not an array.");
        }
        int count1 = json_array1.componentCount();
        List <CurrencyConversionJSON> vector_Conversions1 = new List <CurrencyConversionJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            CurrencyConversionJSON convert_classy = CurrencyConversionJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_Conversions1.Add(convert_classy);
        }
        initConversions();
        for (int num1 = 0; num1 < vector_Conversions1.Count; ++num1)
        {
            appendConversions(vector_Conversions1[num1]);
        }
        for (int num1 = 0; num1 < vector_Conversions1.Count; ++num1)
        {
        }
    }
Beispiel #22
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)
        {
        }
    }
Beispiel #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 ContactListJSON is not an array.");
        }
        int count1 = json_array1.componentCount();
        List <OneContactJSON> vector_Value1 = 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_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)
        {
        }
    }
Beispiel #24
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)
        {
        }
    }
Beispiel #25
0
    private void  fromJSONOutputValue(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 OutputValue of UnitConverterQueryStateJSON is not an array.");
        }
        int count1 = json_array1.componentCount();
        List <MeasuredAmountJSON> vector_OutputValue1 = new List <MeasuredAmountJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            MeasuredAmountJSON convert_classy = MeasuredAmountJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_OutputValue1.Add(convert_classy);
        }
        initOutputValue();
        for (int num2 = 0; num2 < vector_OutputValue1.Count; ++num2)
        {
            appendOutputValue(vector_OutputValue1[num2]);
        }
        for (int num1 = 0; num1 < vector_OutputValue1.Count; ++num1)
        {
        }
    }
Beispiel #26
0
    private void  fromJSONSpokenHints(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 SpokenHints of FlightBookingModeJSON is not an array.");
        }
        int           count1 = json_array1.componentCount();
        List <string> vector_SpokenHints1 = 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 SpokenHints of FlightBookingModeJSON is not a string.");
            }
            vector_SpokenHints1.Add(json_string.getData());
        }
        initSpokenHints();
        for (int num3 = 0; num3 < vector_SpokenHints1.Count; ++num3)
        {
            appendSpokenHints(vector_SpokenHints1[num3]);
        }
        for (int num1 = 0; num1 < vector_SpokenHints1.Count; ++num1)
        {
        }
    }
    private void  fromJSONTracks(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 Tracks of MusicAlbumJSON is not an array.");
        }
        int count1 = json_array1.componentCount();

        if (count1 < 1)
        {
            throw new Exception("The value for field Tracks of MusicAlbumJSON has too few elements.");
        }
        List <MusicTrackBaseJSON> vector_Tracks1 = new List <MusicTrackBaseJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            MusicTrackBaseJSON convert_classy = MusicTrackBaseJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_Tracks1.Add(convert_classy);
        }
        Debug.Assert(vector_Tracks1.Count >= 1);
        initTracks();
        for (int num2 = 0; num2 < vector_Tracks1.Count; ++num2)
        {
            appendTracks(vector_Tracks1[num2]);
        }
        for (int num1 = 0; num1 < vector_Tracks1.Count; ++num1)
        {
        }
    }
Beispiel #28
0
    private void  fromJSONStockListings(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 StockListings of StockMarketConversationJSON is not an array.");
        }
        int           count1 = json_array1.componentCount();
        List <string> vector_StockListings1 = 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 StockListings of StockMarketConversationJSON is not a string.");
            }
            vector_StockListings1.Add(json_string.getData());
        }
        initStockListings();
        for (int num2 = 0; num2 < vector_StockListings1.Count; ++num2)
        {
            appendStockListings(vector_StockListings1[num2]);
        }
        for (int num1 = 0; num1 < vector_StockListings1.Count; ++num1)
        {
        }
    }
Beispiel #29
0
    private void  fromJSONAthletes(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 Athletes of SportsOlympicsEventSchedulesAndResultsInstanceMedalWinnerJSON is not an array.");
        }
        int count1 = json_array1.componentCount();
        List <SportsOlympicsAthleteJSON> vector_Athletes1 = new List <SportsOlympicsAthleteJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            SportsOlympicsAthleteJSON convert_classy = SportsOlympicsAthleteJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_Athletes1.Add(convert_classy);
        }
        initAthletes();
        for (int num1 = 0; num1 < vector_Athletes1.Count; ++num1)
        {
            appendAthletes(vector_Athletes1[num1]);
        }
        for (int num1 = 0; num1 < vector_Athletes1.Count; ++num1)
        {
        }
    }
Beispiel #30
0
    private void  fromJSONQueryComponents(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 QueryComponents of SportsOlympicsMedalStandingsInformationNuggetJSON is not an array.");
        }
        int count1 = json_array1.componentCount();
        List <SportsOlympicsMedalStandingsQueryComponentJSON> vector_QueryComponents1 = new List <SportsOlympicsMedalStandingsQueryComponentJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            SportsOlympicsMedalStandingsQueryComponentJSON convert_classy = SportsOlympicsMedalStandingsQueryComponentJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_QueryComponents1.Add(convert_classy);
        }
        initQueryComponents();
        for (int num1 = 0; num1 < vector_QueryComponents1.Count; ++num1)
        {
            appendQueryComponents(vector_QueryComponents1[num1]);
        }
        for (int num1 = 0; num1 < vector_QueryComponents1.Count; ++num1)
        {
        }
    }