private void fromJSONChoices(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); ContactNumberChoicesJSON convert_classy = ContactNumberChoicesJSON.from_json(json_value, ignore_extras, true); setChoices(convert_classy); }
private void fromJSONPersonsWithAmbiguousPhoneNumbers(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); JSONArrayValue json_array1 = json_value.array_value(); if (json_array1 == null) { throw new Exception("The value for field PersonsWithAmbiguousPhoneNumbers of SMSRecipientsJSON is not an array."); } int count1 = json_array1.componentCount(); List <ContactNumberChoicesJSON> vector_PersonsWithAmbiguousPhoneNumbers1 = new List <ContactNumberChoicesJSON>(count1); for (int num1 = 0; num1 < count1; ++num1) { ContactNumberChoicesJSON convert_classy = ContactNumberChoicesJSON.from_json(json_array1.component(num1), ignore_extras, true); vector_PersonsWithAmbiguousPhoneNumbers1.Add(convert_classy); } initPersonsWithAmbiguousPhoneNumbers(); for (int num3 = 0; num3 < vector_PersonsWithAmbiguousPhoneNumbers1.Count; ++num3) { appendPersonsWithAmbiguousPhoneNumbers(vector_PersonsWithAmbiguousPhoneNumbers1[num3]); } for (int num1 = 0; num1 < vector_PersonsWithAmbiguousPhoneNumbers1.Count; ++num1) { } }
public void setChoices(ContactNumberChoicesJSON new_value) { if (flagHasChoices) { } flagHasChoices = true; storeChoices = new_value; }
public void appendPersonsWithAmbiguousPhoneNumbers(ContactNumberChoicesJSON to_append) { if (!flagHasPersonsWithAmbiguousPhoneNumbers) { flagHasPersonsWithAmbiguousPhoneNumbers = true; storePersonsWithAmbiguousPhoneNumbers.Clear(); } Debug.Assert(flagHasPersonsWithAmbiguousPhoneNumbers); storePersonsWithAmbiguousPhoneNumbers.Add(to_append); }