Exemple #1
0
 protected void finish(SMSRecipientsJSON result)
 {
     if (fieldGeneratorUnambiguousRecipients.have_value)
     {
         result.initUnambiguousRecipients();
         int count = fieldGeneratorUnambiguousRecipients.value.Count;
         for (int num = 0; num < count; ++num)
         {
             result.appendUnambiguousRecipients(fieldGeneratorUnambiguousRecipients.value[num]);
         }
         fieldGeneratorUnambiguousRecipients.value.Clear();
         fieldGeneratorUnambiguousRecipients.have_value = false;
     }
     if (fieldGeneratorAmbiguousMatches.have_value)
     {
         result.initAmbiguousMatches();
         int count = fieldGeneratorAmbiguousMatches.value.Count;
         for (int num = 0; num < count; ++num)
         {
             result.appendAmbiguousMatches(fieldGeneratorAmbiguousMatches.value[num]);
         }
         fieldGeneratorAmbiguousMatches.value.Clear();
         fieldGeneratorAmbiguousMatches.have_value = false;
     }
     if (fieldGeneratorPersonsWithAmbiguousPhoneNumbers.have_value)
     {
         result.initPersonsWithAmbiguousPhoneNumbers();
         int count = fieldGeneratorPersonsWithAmbiguousPhoneNumbers.value.Count;
         for (int num = 0; num < count; ++num)
         {
             result.appendPersonsWithAmbiguousPhoneNumbers(fieldGeneratorPersonsWithAmbiguousPhoneNumbers.value[num]);
         }
         fieldGeneratorPersonsWithAmbiguousPhoneNumbers.value.Clear();
         fieldGeneratorPersonsWithAmbiguousPhoneNumbers.have_value = false;
     }
     if (fieldGeneratorNoNumberMatches.have_value)
     {
         result.initNoNumberMatches();
         int count = fieldGeneratorNoNumberMatches.value.Count;
         for (int num = 0; num < count; ++num)
         {
             result.appendNoNumberMatches(fieldGeneratorNoNumberMatches.value[num]);
         }
         fieldGeneratorNoNumberMatches.value.Clear();
         fieldGeneratorNoNumberMatches.have_value = false;
     }
     if (fieldGeneratorContactsWithSelectedNumbers.have_value)
     {
         result.initContactsWithSelectedNumbers();
         int count = fieldGeneratorContactsWithSelectedNumbers.value.Count;
         for (int num = 0; num < count; ++num)
         {
             result.appendContactsWithSelectedNumbers(fieldGeneratorContactsWithSelectedNumbers.value[num]);
         }
         fieldGeneratorContactsWithSelectedNumbers.value.Clear();
         fieldGeneratorContactsWithSelectedNumbers.have_value = false;
     }
 }