Ejemplo n.º 1
0
 protected void finish(StockMarketInformationNuggetJSON result)
 {
     if (fieldGeneratorQueryBlocks.have_value)
     {
         result.initQueryBlocks();
         int count = fieldGeneratorQueryBlocks.value.Count;
         for (int num = 0; num < count; ++num)
         {
             result.appendQueryBlocks(fieldGeneratorQueryBlocks.value[num]);
         }
         fieldGeneratorQueryBlocks.value.Clear();
         fieldGeneratorQueryBlocks.have_value = false;
     }
     else if ((!(result.hasQueryBlocks())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"QueryBlocks\" field was missing.");
     }
     if (fieldGeneratorInvalidDateRequested.have_value)
     {
         result.setInvalidDateRequested(fieldGeneratorInvalidDateRequested.value);
         fieldGeneratorInvalidDateRequested.have_value = false;
     }
     else if ((!(result.hasInvalidDateRequested())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"InvalidDateRequested\" field was missing.");
     }
     if (fieldGeneratorInvalidAttributeRequested.have_value)
     {
         result.setInvalidAttributeRequested(fieldGeneratorInvalidAttributeRequested.value);
         fieldGeneratorInvalidAttributeRequested.have_value = false;
     }
     else if ((!(result.hasInvalidAttributeRequested())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"InvalidAttributeRequested\" field was missing.");
     }
     if (fieldGeneratorClientLocalTime.have_value)
     {
         result.setClientLocalTime(fieldGeneratorClientLocalTime.value);
         fieldGeneratorClientLocalTime.have_value = false;
     }
     base.finish(result);
 }