Exemple #1
0
 protected void finish(HomeAutomationGroupJSON result)
 {
     if (fieldGeneratorHomeAutomationSolution.have_value)
     {
         result.setHomeAutomationSolution(fieldGeneratorHomeAutomationSolution.value);
         fieldGeneratorHomeAutomationSolution.have_value = false;
     }
     if (fieldGeneratorName.have_value)
     {
         result.setName(fieldGeneratorName.value);
         fieldGeneratorName.have_value = false;
     }
     else if ((!(result.hasName())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"Name\" field was missing.");
     }
     if (fieldGeneratorID.have_value)
     {
         result.setID(fieldGeneratorID.value);
         fieldGeneratorID.have_value = false;
     }
     else if ((!(result.hasID())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"ID\" field was missing.");
     }
     if (fieldGeneratorSolutionData.have_value)
     {
         result.setSolutionData(fieldGeneratorSolutionData.value);
         fieldGeneratorSolutionData.have_value = false;
     }
 }