public void setRemoveRecipients(SMSRecipientsJSON new_value) { if (flagHasRemoveRecipients) { } flagHasRemoveRecipients = true; storeRemoveRecipients = new_value; }
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; } }
protected override void finish() { SMSRecipientsJSON result = new SMSRecipientsJSON(); Debug.Assert(result != null); finish(result); int extra_count = unknownFieldGenerator.field_names.Count; Debug.Assert(extra_count == unknownFieldGenerator.field_values.Count); for (int extra_num = 0; extra_num < extra_count; ++extra_num) { result.extraSMSRecipientsAppendPair(unknownFieldGenerator.field_names[extra_num], unknownFieldGenerator.field_values[extra_num]); } unknownFieldGenerator.field_names.Clear(); unknownFieldGenerator.field_values.Clear(); unknownFieldGenerator.index = new Dictionary <string, JSONValue>(); handle_result(result); }
protected override void handle_result(SMSRecipientsJSON result) { //@@@ Debug.Assert(!have_value); have_value = true; value = result; }
protected abstract void handle_result(SMSRecipientsJSON new_result);
protected override void handle_result(SMSRecipientsJSON result) { top.value.Add(result); }