private void fromJSONTo(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); SMSAddressFieldJSON convert_classy = SMSAddressFieldJSON.from_json(json_value, ignore_extras, true); setTo(convert_classy); }
protected override void finish() { SMSAddressFieldJSON result = new SMSAddressFieldJSON(); Debug.Assert(result != null); finish(result); handle_result(result); }
public void setTo(SMSAddressFieldJSON new_value) { if (flagHasTo) { } flagHasTo = true; storeTo = new_value; }
protected void finish(SMSAddressFieldJSON result) { if (fieldGeneratorMissingPhoneNumbers.have_value) { result.initMissingPhoneNumbers(); int count = fieldGeneratorMissingPhoneNumbers.value.Count; for (int num = 0; num < count; ++num) { result.appendMissingPhoneNumbers(fieldGeneratorMissingPhoneNumbers.value[num]); } fieldGeneratorMissingPhoneNumbers.value.Clear(); fieldGeneratorMissingPhoneNumbers.have_value = false; } if (fieldGeneratorDisambiguatePhoneNumbers.have_value) { result.initDisambiguatePhoneNumbers(); int count = fieldGeneratorDisambiguatePhoneNumbers.value.Count; for (int num = 0; num < count; ++num) { result.appendDisambiguatePhoneNumbers(fieldGeneratorDisambiguatePhoneNumbers.value[num]); } fieldGeneratorDisambiguatePhoneNumbers.value.Clear(); fieldGeneratorDisambiguatePhoneNumbers.have_value = false; } if (fieldGeneratorValidPhoneNumbers.have_value) { result.initValidPhoneNumbers(); int count = fieldGeneratorValidPhoneNumbers.value.Count; for (int num = 0; num < count; ++num) { result.appendValidPhoneNumbers(fieldGeneratorValidPhoneNumbers.value[num]); } fieldGeneratorValidPhoneNumbers.value.Clear(); fieldGeneratorValidPhoneNumbers.have_value = false; } }
protected override void handle_result(SMSAddressFieldJSON result) { top.value.Add(result); }
protected override void handle_result(SMSAddressFieldJSON result) { //@@@ Debug.Assert(!have_value); have_value = true; value = result; }
protected abstract void handle_result(SMSAddressFieldJSON new_result);