Exemple #1
0
        protected override void finish()
        {
            SevenDigitalRadioStationJSON result = new SevenDigitalRadioStationJSON();

            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.extraSevenDigitalRadioStationAppendPair(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);
        }
Exemple #2
0
 protected void finish(SevenDigitalRadioStationJSON result)
 {
     if (fieldGeneratorProviderName.have_value)
     {
         result.setProviderName(fieldGeneratorProviderName.value);
         fieldGeneratorProviderName.have_value = false;
     }
     if (fieldGeneratorProviderDescription.have_value)
     {
         result.setProviderDescription(fieldGeneratorProviderDescription.value);
         fieldGeneratorProviderDescription.have_value = false;
     }
     if (fieldGeneratorProviderWebURL.have_value)
     {
         result.setProviderWebURL(fieldGeneratorProviderWebURL.value);
         fieldGeneratorProviderWebURL.have_value = false;
     }
     if (fieldGeneratorProviderImageURL.have_value)
     {
         result.setProviderImageURL(fieldGeneratorProviderImageURL.value);
         fieldGeneratorProviderImageURL.have_value = false;
     }
     if (fieldGeneratorNetRadioID.have_value)
     {
         result.setNetRadioID(fieldGeneratorNetRadioID.value);
         fieldGeneratorNetRadioID.have_value = false;
     }
     if (fieldGeneratorStationDescription.have_value)
     {
         result.setStationDescription(fieldGeneratorStationDescription.value);
         fieldGeneratorStationDescription.have_value = false;
     }
     if (fieldGeneratorStationWebURL.have_value)
     {
         result.setStationWebURL(fieldGeneratorStationWebURL.value);
         fieldGeneratorStationWebURL.have_value = false;
     }
     if (fieldGeneratorBroadcastMethod.have_value)
     {
         result.setBroadcastMethod(fieldGeneratorBroadcastMethod.value);
         fieldGeneratorBroadcastMethod.have_value = false;
     }
     if (fieldGeneratorImageURL.have_value)
     {
         result.setImageURL(fieldGeneratorImageURL.value);
         fieldGeneratorImageURL.have_value = false;
     }
     if (fieldGeneratorCity.have_value)
     {
         result.setCity(fieldGeneratorCity.value);
         fieldGeneratorCity.have_value = false;
     }
     if (fieldGeneratorStationName.have_value)
     {
         result.setStationName(fieldGeneratorStationName.value);
         fieldGeneratorStationName.have_value = false;
     }
     if (fieldGeneratorFrequency.have_value)
     {
         result.setFrequencyText(fieldGeneratorFrequency.value);
         fieldGeneratorFrequency.have_value = false;
     }
     if (fieldGeneratorBand.have_value)
     {
         result.setBand(fieldGeneratorBand.value);
         fieldGeneratorBand.have_value = false;
     }
 }
Exemple #3
0
        protected override void handle_result(SevenDigitalRadioStationJSON result)
        {
//@@@            Debug.Assert(!have_value);
            have_value = true;
            value      = result;
        }
Exemple #4
0
 protected override void handle_result(SevenDigitalRadioStationJSON result)
 {
     top.value.Add(result);
 }
Exemple #5
0
 protected abstract void handle_result(SevenDigitalRadioStationJSON new_result);