Пример #1
0
 protected void finish(TypeNativeDataJSON result)
 {
     if (fieldGeneratorCurrentDateAndTime.have_value)
     {
         result.setCurrentDateAndTime(fieldGeneratorCurrentDateAndTime.value);
         fieldGeneratorCurrentDateAndTime.have_value = false;
     }
     else if ((!(result.hasCurrentDateAndTime())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"CurrentDateAndTime\" field was missing.");
     }
     if (fieldGeneratorFlightTravelLocationForClient.have_value)
     {
         result.setFlightTravelLocationForClient(fieldGeneratorFlightTravelLocationForClient.value);
         fieldGeneratorFlightTravelLocationForClient.have_value = false;
     }
     if (fieldGeneratorFlightStatusSearchResults.have_value)
     {
         result.initFlightStatusSearchResults();
         int count = fieldGeneratorFlightStatusSearchResults.value.Count;
         for (int num = 0; num < count; ++num)
         {
             result.appendFlightStatusSearchResults(fieldGeneratorFlightStatusSearchResults.value[num]);
         }
         fieldGeneratorFlightStatusSearchResults.value.Clear();
         fieldGeneratorFlightStatusSearchResults.have_value = false;
     }
 }