Example #1
0
    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);
    }
Example #2
0
        protected override void finish()
        {
            SMSAddressFieldJSON result = new SMSAddressFieldJSON();

            Debug.Assert(result != null);
            finish(result);
            handle_result(result);
        }
Example #3
0
 public void setTo(SMSAddressFieldJSON new_value)
 {
     if (flagHasTo)
     {
     }
     flagHasTo = true;
     storeTo   = new_value;
 }
Example #4
0
 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;
     }
 }
Example #5
0
 protected override void handle_result(SMSAddressFieldJSON result)
 {
     top.value.Add(result);
 }
Example #6
0
        protected override void handle_result(SMSAddressFieldJSON result)
        {
//@@@            Debug.Assert(!have_value);
            have_value = true;
            value      = result;
        }
Example #7
0
 protected abstract void handle_result(SMSAddressFieldJSON new_result);