コード例 #1
0
    private JSONValue  extraQueryTypesToJSON()
    {
        JSONArrayValue generated_array_1_QueryTypes = new JSONArrayValue();

        for (int num1 = 0; num1 < storeQueryTypes.Count; ++num1)
        {
            JSONStringValue generated_string_QueryTypes;
            switch (storeQueryTypes[num1])
            {
            case TypeQueryTypes.QueryTypes_availability:
                generated_string_QueryTypes = new JSONStringValue("availability");
                break;

            case TypeQueryTypes.QueryTypes_fare:
                generated_string_QueryTypes = new JSONStringValue("fare");
                break;

            case TypeQueryTypes.QueryTypes_surge:
                generated_string_QueryTypes = new JSONStringValue("surge");
                break;

            default:
                Debug.Assert(false);
                generated_string_QueryTypes = null;
                break;
            }
            generated_array_1_QueryTypes.appendComponent(generated_string_QueryTypes);
        }
        return(generated_array_1_QueryTypes);
    }
コード例 #2
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);
    }
コード例 #3
0
    private JSONValue  extraEstimateTypesToJSON()
    {
        JSONArrayValue generated_array_1_EstimateTypes = new JSONArrayValue();

        for (int num1 = 0; num1 < storeEstimateTypes.Count; ++num1)
        {
            JSONStringValue generated_string_EstimateTypes;
            switch (storeEstimateTypes[num1])
            {
            case TypeEstimateTypes.EstimateTypes_cost:
                generated_string_EstimateTypes = new JSONStringValue("cost");
                break;

            case TypeEstimateTypes.EstimateTypes_duration:
                generated_string_EstimateTypes = new JSONStringValue("duration");
                break;

            case TypeEstimateTypes.EstimateTypes_distance:
                generated_string_EstimateTypes = new JSONStringValue("distance");
                break;

            case TypeEstimateTypes.EstimateTypes_time:
                generated_string_EstimateTypes = new JSONStringValue("time");
                break;

            default:
                Debug.Assert(false);
                generated_string_EstimateTypes = null;
                break;
            }
            generated_array_1_EstimateTypes.appendComponent(generated_string_EstimateTypes);
        }
        return(generated_array_1_EstimateTypes);
    }
コード例 #4
0
    private JSONValue  extraArtistIDsToJSON()
    {
        JSONArrayValue generated_array_2_ArtistIDs = new JSONArrayValue();

        for (int num2 = 0; num2 < storeArtistIDs.Count; ++num2)
        {
            JSONStringValue generated_string_ArtistIDs = new JSONStringValue(storeArtistIDs[num2]);
            generated_array_2_ArtistIDs.appendComponent(generated_string_ArtistIDs);
        }
        return(generated_array_2_ArtistIDs);
    }
コード例 #5
0
    private JSONValue  extraOrganizationsToJSON()
    {
        JSONArrayValue generated_array_1_Organizations = new JSONArrayValue();

        for (int num1 = 0; num1 < storeOrganizations.Count; ++num1)
        {
            JSONStringValue generated_string_Organizations = new JSONStringValue(storeOrganizations[num1]);
            generated_array_1_Organizations.appendComponent(generated_string_Organizations);
        }
        return(generated_array_1_Organizations);
    }
コード例 #6
0
    private JSONValue  extraAlbumIDsToJSON()
    {
        JSONArrayValue generated_array_3_AlbumIDs = new JSONArrayValue();

        for (int num3 = 0; num3 < storeAlbumIDs.Count; ++num3)
        {
            JSONStringValue generated_string_AlbumIDs = new JSONStringValue(storeAlbumIDs[num3]);
            generated_array_3_AlbumIDs.appendComponent(generated_string_AlbumIDs);
        }
        return(generated_array_3_AlbumIDs);
    }
コード例 #7
0
    private JSONValue  extraInternationalAreaCodesToJSON()
    {
        JSONArrayValue generated_array_2_InternationalAreaCodes = new JSONArrayValue();

        for (int num2 = 0; num2 < storeInternationalAreaCodes.Count; ++num2)
        {
            JSONStringValue generated_string_InternationalAreaCodes = new JSONStringValue(storeInternationalAreaCodes[num2]);
            generated_array_2_InternationalAreaCodes.appendComponent(generated_string_InternationalAreaCodes);
        }
        return(generated_array_2_InternationalAreaCodes);
    }
コード例 #8
0
    private JSONValue  extraDisambiguateChoiceIdsToJSON()
    {
        JSONArrayValue generated_array_2_DisambiguateChoiceIds = new JSONArrayValue();

        for (int num2 = 0; num2 < storeDisambiguateChoiceIds.Count; ++num2)
        {
            JSONStringValue generated_string_DisambiguateChoiceIds = new JSONStringValue(storeDisambiguateChoiceIds[num2]);
            generated_array_2_DisambiguateChoiceIds.appendComponent(generated_string_DisambiguateChoiceIds);
        }
        return(generated_array_2_DisambiguateChoiceIds);
    }
コード例 #9
0
    private JSONValue  extraDisambiguationOrderedListToJSON()
    {
        JSONArrayValue generated_array_1_DisambiguationOrderedList = new JSONArrayValue();

        for (int num1 = 0; num1 < storeDisambiguationOrderedList.Count; ++num1)
        {
            JSONStringValue generated_string_DisambiguationOrderedList = new JSONStringValue(storeDisambiguationOrderedList[num1]);
            generated_array_1_DisambiguationOrderedList.appendComponent(generated_string_DisambiguationOrderedList);
        }
        return(generated_array_1_DisambiguationOrderedList);
    }
コード例 #10
0
    private JSONValue  extraBlockNameListToJSON()
    {
        JSONArrayValue generated_array_1_BlockNameList = new JSONArrayValue();

        for (int num1 = 0; num1 < storeBlockNameList.Count; ++num1)
        {
            JSONStringValue generated_string_BlockNameList = new JSONStringValue(storeBlockNameList[num1]);
            generated_array_1_BlockNameList.appendComponent(generated_string_BlockNameList);
        }
        return(generated_array_1_BlockNameList);
    }
コード例 #11
0
    private JSONValue  extraChoicesToJSON()
    {
        JSONArrayValue generated_array_1_Choices = new JSONArrayValue();

        for (int num1 = 0; num1 < storeChoices.Count; ++num1)
        {
            JSONStringValue generated_string_Choices = new JSONStringValue(storeChoices[num1]);
            generated_array_1_Choices.appendComponent(generated_string_Choices);
        }
        return(generated_array_1_Choices);
    }
    private JSONValue  extraAliasLabelsToJSON()
    {
        JSONArrayValue generated_array_1_AliasLabels = new JSONArrayValue();

        for (int num1 = 0; num1 < storeAliasLabels.Count; ++num1)
        {
            JSONStringValue generated_string_AliasLabels = new JSONStringValue(storeAliasLabels[num1]);
            generated_array_1_AliasLabels.appendComponent(generated_string_AliasLabels);
        }
        return(generated_array_1_AliasLabels);
    }
コード例 #13
0
    private JSONValue  extraAreaCodesToJSON()
    {
        JSONArrayValue generated_array_1_AreaCodes = new JSONArrayValue();

        for (int num1 = 0; num1 < storeAreaCodes.Count; ++num1)
        {
            JSONIntegerValue generated_integer_AreaCodes = new JSONIntegerValue(storeAreaCodes[num1]);
            generated_array_1_AreaCodes.appendComponent(generated_integer_AreaCodes);
        }
        return(generated_array_1_AreaCodes);
    }
コード例 #14
0
    private JSONValue  extraCityNameToJSON()
    {
        JSONArrayValue generated_array_1_CityName = new JSONArrayValue();

        for (int num1 = 0; num1 < storeCityName.Count; ++num1)
        {
            JSONStringValue generated_string_CityName = new JSONStringValue(storeCityName[num1]);
            generated_array_1_CityName.appendComponent(generated_string_CityName);
        }
        return(generated_array_1_CityName);
    }
コード例 #15
0
    private JSONValue  extraChoiceLabelsToJSON()
    {
        JSONArrayValue generated_array_2_ChoiceLabels = new JSONArrayValue();

        for (int num2 = 0; num2 < storeChoiceLabels.Count; ++num2)
        {
            JSONStringValue generated_string_ChoiceLabels = new JSONStringValue(storeChoiceLabels[num2]);
            generated_array_2_ChoiceLabels.appendComponent(generated_string_ChoiceLabels);
        }
        return(generated_array_2_ChoiceLabels);
    }
コード例 #16
0
    private JSONValue  extraAnswersToJSON()
    {
        JSONArrayValue generated_array_3_Answers = new JSONArrayValue();

        for (int num3 = 0; num3 < storeAnswers.Count; ++num3)
        {
            JSONIntegerValue generated_integer_Answers = new JSONIntegerValue(storeAnswers[num3]);
            generated_array_3_Answers.appendComponent(generated_integer_Answers);
        }
        return(generated_array_3_Answers);
    }
コード例 #17
0
    private JSONValue  extraMapLocationSpecsToJSON()
    {
        JSONArrayValue generated_array_1_MapLocationSpecs = new JSONArrayValue();

        for (int num1 = 0; num1 < storeMapLocationSpecs.Count; ++num1)
        {
            JSONValueHandler handler_MapLocationSpecs = new JSONValueHandler();
            storeMapLocationSpecs[num1].write_as_json(handler_MapLocationSpecs);
            generated_array_1_MapLocationSpecs.appendComponent(handler_MapLocationSpecs.result);
        }
        return(generated_array_1_MapLocationSpecs);
    }
コード例 #18
0
    private JSONValue  extraLabeledPhoneNumbersToJSON()
    {
        JSONArrayValue generated_array_1_LabeledPhoneNumbers = new JSONArrayValue();

        for (int num1 = 0; num1 < storeLabeledPhoneNumbers.Count; ++num1)
        {
            JSONValueHandler handler_LabeledPhoneNumbers = new JSONValueHandler();
            storeLabeledPhoneNumbers[num1].write_as_json(handler_LabeledPhoneNumbers);
            generated_array_1_LabeledPhoneNumbers.appendComponent(handler_LabeledPhoneNumbers.result);
        }
        return(generated_array_1_LabeledPhoneNumbers);
    }
コード例 #19
0
    private JSONValue  extraDictionaryEntriesToJSON()
    {
        JSONArrayValue generated_array_2_DictionaryEntries = new JSONArrayValue();

        for (int num2 = 0; num2 < storeDictionaryEntries.Count; ++num2)
        {
            JSONValueHandler handler_DictionaryEntries = new JSONValueHandler();
            storeDictionaryEntries[num2].write_as_json(handler_DictionaryEntries);
            generated_array_2_DictionaryEntries.appendComponent(handler_DictionaryEntries.result);
        }
        return(generated_array_2_DictionaryEntries);
    }
コード例 #20
0
    private JSONValue  extraInformationNuggetsToJSON()
    {
        JSONArrayValue generated_array_1_InformationNuggets = new JSONArrayValue();

        for (int num1 = 0; num1 < storeInformationNuggets.Count; ++num1)
        {
            JSONValueHandler handler_InformationNuggets = new JSONValueHandler();
            storeInformationNuggets[num1].write_as_json(handler_InformationNuggets);
            generated_array_1_InformationNuggets.appendComponent(handler_InformationNuggets.result);
        }
        return(generated_array_1_InformationNuggets);
    }
コード例 #21
0
    private JSONValue  extraQueryDataToJSON()
    {
        JSONArrayValue generated_array_1_QueryData = new JSONArrayValue();

        for (int num1 = 0; num1 < storeQueryData.Count; ++num1)
        {
            JSONValueHandler handler_QueryData = new JSONValueHandler();
            storeQueryData[num1].write_as_json(handler_QueryData);
            generated_array_1_QueryData.appendComponent(handler_QueryData.result);
        }
        return(generated_array_1_QueryData);
    }
コード例 #22
0
    private JSONValue  extraFlightStatusSearchResultsToJSON()
    {
        JSONArrayValue generated_array_1_FlightStatusSearchResults = new JSONArrayValue();

        for (int num1 = 0; num1 < storeFlightStatusSearchResults.Count; ++num1)
        {
            JSONValueHandler handler_FlightStatusSearchResults = new JSONValueHandler();
            storeFlightStatusSearchResults[num1].write_as_json(handler_FlightStatusSearchResults);
            generated_array_1_FlightStatusSearchResults.appendComponent(handler_FlightStatusSearchResults.result);
        }
        return(generated_array_1_FlightStatusSearchResults);
    }
コード例 #23
0
    private JSONValue  extraCalculatedDateAndTimesToJSON()
    {
        JSONArrayValue generated_array_1_CalculatedDateAndTimes = new JSONArrayValue();

        for (int num1 = 0; num1 < storeCalculatedDateAndTimes.Count; ++num1)
        {
            JSONValueHandler handler_CalculatedDateAndTimes = new JSONValueHandler();
            storeCalculatedDateAndTimes[num1].write_as_json(handler_CalculatedDateAndTimes);
            generated_array_1_CalculatedDateAndTimes.appendComponent(handler_CalculatedDateAndTimes.result);
        }
        return(generated_array_1_CalculatedDateAndTimes);
    }
コード例 #24
0
    private JSONValue  extraCanAlmostMakeToJSON()
    {
        JSONArrayValue generated_array_3_CanAlmostMake = new JSONArrayValue();

        for (int num3 = 0; num3 < storeCanAlmostMake.Count; ++num3)
        {
            JSONValueHandler handler_CanAlmostMake = new JSONValueHandler();
            storeCanAlmostMake[num3].write_as_json(handler_CanAlmostMake);
            generated_array_3_CanAlmostMake.appendComponent(handler_CanAlmostMake.result);
        }
        return(generated_array_3_CanAlmostMake);
    }
コード例 #25
0
    private JSONValue  extraVideosToJSON()
    {
        JSONArrayValue generated_array_1_Videos = new JSONArrayValue();

        for (int num1 = 0; num1 < storeVideos.Count; ++num1)
        {
            JSONValueHandler handler_Videos = new JSONValueHandler();
            storeVideos[num1].write_as_json(handler_Videos);
            generated_array_1_Videos.appendComponent(handler_Videos.result);
        }
        return(generated_array_1_Videos);
    }
コード例 #26
0
    private JSONValue  extraGamesToJSON()
    {
        JSONArrayValue generated_array_3_Games = new JSONArrayValue();

        for (int num3 = 0; num3 < storeGames.Count; ++num3)
        {
            JSONValueHandler handler_Games = new JSONValueHandler();
            storeGames[num3].write_as_json(handler_Games);
            generated_array_3_Games.appendComponent(handler_Games.result);
        }
        return(generated_array_3_Games);
    }
コード例 #27
0
    private JSONValue  extraStandingsToJSON()
    {
        JSONArrayValue generated_array_2_Standings = new JSONArrayValue();

        for (int num2 = 0; num2 < storeStandings.Count; ++num2)
        {
            JSONValueHandler handler_Standings = new JSONValueHandler();
            storeStandings[num2].write_as_json(handler_Standings);
            generated_array_2_Standings.appendComponent(handler_Standings.result);
        }
        return(generated_array_2_Standings);
    }
コード例 #28
0
    private JSONValue  extraSeriesToJSON()
    {
        JSONArrayValue generated_array_4_Series = new JSONArrayValue();

        for (int num4 = 0; num4 < storeSeries.Count; ++num4)
        {
            JSONValueHandler handler_Series = new JSONValueHandler();
            storeSeries[num4].write_as_json(handler_Series);
            generated_array_4_Series.appendComponent(handler_Series.result);
        }
        return(generated_array_4_Series);
    }
コード例 #29
0
    private JSONValue  extraRoomsListToJSON()
    {
        JSONArrayValue generated_array_1_RoomsList = new JSONArrayValue();

        for (int num1 = 0; num1 < storeRoomsList.Count; ++num1)
        {
            JSONValueHandler handler_RoomsList = new JSONValueHandler();
            storeRoomsList[num1].write_as_json(handler_RoomsList);
            generated_array_1_RoomsList.appendComponent(handler_RoomsList.result);
        }
        return(generated_array_1_RoomsList);
    }
コード例 #30
0
    private JSONValue  extraPositionToJSON()
    {
        JSONArrayValue generated_array_1_Position = new JSONArrayValue();

        for (int num1 = 0; num1 < storePosition.Count; ++num1)
        {
            JSONValueHandler handler_Position = new JSONValueHandler();
            storePosition[num1].write_as_json(handler_Position);
            generated_array_1_Position.appendComponent(handler_Position.result);
        }
        return(generated_array_1_Position);
    }