Exemplo n.º 1
0
    private void  fromJSONArrivalDateTime(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        FlightTimesJSON convert_classy = FlightTimesJSON.from_json(json_value, ignore_extras, true);

        setArrivalDateTime(convert_classy);
    }
Exemplo n.º 2
0
 public void setDepartureDateTime(FlightTimesJSON new_value)
 {
     if (flagHasDepartureDateTime)
     {
     }
     flagHasDepartureDateTime = true;
     storeDepartureDateTime   = new_value;
 }
Exemplo n.º 3
0
 public void setArrivalDateTime(FlightTimesJSON new_value)
 {
     if (flagHasArrivalDateTime)
     {
     }
     flagHasArrivalDateTime = true;
     storeArrivalDateTime   = new_value;
 }
Exemplo n.º 4
0
 public void setOperationalDateTime(FlightTimesJSON new_value)
 {
     if (flagHasOperationalDateTime)
     {
     }
     flagHasOperationalDateTime = true;
     storeOperationalDateTime   = new_value;
 }
 public void setCurrentDateAndTime(FlightTimesJSON new_value)
 {
     if (flagHasCurrentDateAndTime)
     {
     }
     flagHasCurrentDateAndTime = true;
     storeCurrentDateAndTime   = new_value;
 }
Exemplo n.º 6
0
 public void setEstimatedDateTime(FlightTimesJSON new_value)
 {
     if (flagHasEstimatedDateTime)
     {
     }
     flagHasEstimatedDateTime = true;
     storeEstimatedDateTime   = new_value;
 }
Exemplo n.º 7
0
 public void setScheduledDateTime(FlightTimesJSON new_value)
 {
     if (flagHasScheduledDateTime)
     {
     }
     flagHasScheduledDateTime = true;
     storeScheduledDateTime   = new_value;
 }
        protected override void finish()
        {
            FlightTimesJSON result = new FlightTimesJSON();

            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.extraFlightTimesAppendPair(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 void finish(FlightTimesJSON result)
 {
     if (fieldGeneratorLocal.have_value)
     {
         result.setLocal(fieldGeneratorLocal.value);
         fieldGeneratorLocal.have_value = false;
     }
     else if ((!(result.hasLocal())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"Local\" field was missing.");
     }
     if (fieldGeneratorUTC.have_value)
     {
         result.setUTC(fieldGeneratorUTC.value);
         fieldGeneratorUTC.have_value = false;
     }
     else if ((!(result.hasUTC())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"UTC\" field was missing.");
     }
 }
 protected override void handle_result(FlightTimesJSON result)
 {
     top.value.Add(result);
 }
        protected override void handle_result(FlightTimesJSON result)
        {
//@@@            Debug.Assert(!have_value);
            have_value = true;
            value      = result;
        }
 protected abstract void handle_result(FlightTimesJSON new_result);