Exemple #1
0
    private void  fromJSONInformationNuggets(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 InformationNuggets of InformationCommandJSON is not an array.");
        }
        int count1 = json_array1.componentCount();

        if (count1 < 1)
        {
            throw new Exception("The value for field InformationNuggets of InformationCommandJSON has too few elements.");
        }
        List <InformationNuggetJSON> vector_InformationNuggets1 = new List <InformationNuggetJSON>(count1);

        for (int num1 = 0; num1 < count1; ++num1)
        {
            InformationNuggetJSON convert_classy = InformationNuggetJSON.from_json(json_array1.component(num1), ignore_extras, true);
            vector_InformationNuggets1.Add(convert_classy);
        }
        Debug.Assert(vector_InformationNuggets1.Count >= 1);
        initInformationNuggets();
        for (int num1 = 0; num1 < vector_InformationNuggets1.Count; ++num1)
        {
            appendInformationNuggets(vector_InformationNuggets1[num1]);
        }
        for (int num1 = 0; num1 < vector_InformationNuggets1.Count; ++num1)
        {
        }
    }
Exemple #2
0
 public void appendInformationNuggets(InformationNuggetJSON to_append)
 {
     if (!flagHasInformationNuggets)
     {
         flagHasInformationNuggets = true;
         storeInformationNuggets.Clear();
     }
     Debug.Assert(flagHasInformationNuggets);
     storeInformationNuggets.Add(to_append);
 }
 protected override void handle_result(InformationNuggetJSON new_result)
 {
     handle_result((FlightBookingInformationNuggetJSON )new_result);
 }
Exemple #4
0
 protected override void handle_result(InformationNuggetJSON new_result)
 {
     handle_result((TipCalculatorCancelInformationNuggetJSON )new_result);
 }
Exemple #5
0
 protected override void handle_result(InformationNuggetJSON new_result)
 {
     handle_result((GeonameFactsInformationNuggetJSON )new_result);
 }
 protected override void handle_result(InformationNuggetJSON new_result)
 {
     handle_result((CurrencyConverterInformationNuggetJSON )new_result);
 }
Exemple #7
0
 protected override void handle_result(InformationNuggetJSON new_result)
 {
     handle_result((ClientMatchInformationNuggetJSON )new_result);
 }
Exemple #8
0
 protected override void handle_result(InformationNuggetJSON new_result)
 {
     handle_result((UserMemoryNuggetJSON )new_result);
 }
Exemple #9
0
 protected override void handle_result(InformationNuggetJSON new_result)
 {
     handle_result((PropertyValueInformationNuggetJSON )new_result);
 }
Exemple #10
0
 protected override void handle_result(InformationNuggetJSON new_result)
 {
     handle_result((WeatherInformationNuggetJSON )new_result);
 }
Exemple #11
0
 protected override void handle_result(InformationNuggetJSON new_result)
 {
     handle_result((StockMarketInformationNuggetJSON )new_result);
 }
Exemple #12
0
 protected override void handle_result(InformationNuggetJSON new_result)
 {
     handle_result((RockPaperScissorsInformationNuggetJSON )new_result);
 }
 protected override void handle_result(InformationNuggetJSON new_result)
 {
     handle_result((AreaCodeInfoNuggetJSON )new_result);
 }
Exemple #14
0
 protected override void handle_result(InformationNuggetJSON new_result)
 {
     handle_result((RandomNumberGeneratorInformationNuggetJSON )new_result);
 }
 protected override void handle_result(InformationNuggetJSON new_result)
 {
     handle_result((BlackjackInformationNuggetJSON )new_result);
 }
Exemple #16
0
 protected override void handle_result(InformationNuggetJSON new_result)
 {
     handle_result((DisplayMapInformationNuggetJSON )new_result);
 }
Exemple #17
0
 protected override void handle_result(InformationNuggetJSON new_result)
 {
     handle_result((WhatsInDrinkQuestionJSON )new_result);
 }
Exemple #18
0
 protected override void handle_result(InformationNuggetJSON new_result)
 {
     handle_result((GeneralizedThingInformationNuggetJSON )new_result);
 }
 protected override void handle_result(InformationNuggetJSON new_result)
 {
     handle_result((GamesMenuInformationNuggetJSON )new_result);
 }
 protected override void handle_result(InformationNuggetJSON new_result)
 {
     handle_result((BattleshipQuitInformationNuggetJSON )new_result);
 }
Exemple #21
0
 protected override void handle_result(InformationNuggetJSON new_result)
 {
     handle_result((ChineseZodiacInfoNuggetJSON )new_result);
 }
Exemple #22
0
 protected override void handle_result(InformationNuggetJSON new_result)
   {
     handle_result((SportsOlympicsInformationNuggetJSON )new_result);
   }
Exemple #23
0
 protected override void handle_result(InformationNuggetJSON new_result)
 {
     handle_result((DateAndTimeInformationNuggetJSON )new_result);
 }
Exemple #24
0
 protected override void handle_result(InformationNuggetJSON new_result)
 {
     handle_result((NumberGuessInformationNuggetJSON )new_result);
 }
 protected override void handle_result(InformationNuggetJSON new_result)
 {
     handle_result((HangmanInformationNuggetJSON )new_result);
 }
Exemple #26
0
 protected override void handle_result(InformationNuggetJSON new_result)
 {
     handle_result((DictionarySearchInformationNuggetJSON )new_result);
 }