protected void finish(FlightSegmentFilterJSON result) { if (fieldGeneratorFindNextAvailableFlight.have_value) { result.setFindNextAvailableFlight(fieldGeneratorFindNextAvailableFlight.value); fieldGeneratorFindNextAvailableFlight.have_value = false; } if (fieldGeneratorDepartureLocationFilter.have_value) { result.setDepartureLocationFilter(fieldGeneratorDepartureLocationFilter.value); fieldGeneratorDepartureLocationFilter.have_value = false; } if (fieldGeneratorDestinationLocationFilter.have_value) { result.setDestinationLocationFilter(fieldGeneratorDestinationLocationFilter.value); fieldGeneratorDestinationLocationFilter.have_value = false; } if (fieldGeneratorDepartureDateTimeRange.have_value) { result.setDepartureDateTimeRange(fieldGeneratorDepartureDateTimeRange.value); fieldGeneratorDepartureDateTimeRange.have_value = false; } if (fieldGeneratorDepartureTimeSpan.have_value) { result.setDepartureTimeSpan(fieldGeneratorDepartureTimeSpan.value); fieldGeneratorDepartureTimeSpan.have_value = false; } if (fieldGeneratorSearchCriteria.have_value) { result.initSearchCriteria(); int count = fieldGeneratorSearchCriteria.value.Count; for (int num = 0; num < count; ++num) { result.appendSearchCriteria(fieldGeneratorSearchCriteria.value[num]); } fieldGeneratorSearchCriteria.value.Clear(); fieldGeneratorSearchCriteria.have_value = false; } if (fieldGeneratorUpdatedSearchCriteria.have_value) { result.initUpdatedSearchCriteria(); int count = fieldGeneratorUpdatedSearchCriteria.value.Count; for (int num = 0; num < count; ++num) { result.appendUpdatedSearchCriteria(fieldGeneratorUpdatedSearchCriteria.value[num]); } fieldGeneratorUpdatedSearchCriteria.value.Clear(); fieldGeneratorUpdatedSearchCriteria.have_value = false; } if (fieldGeneratorTypeOfLastDateTimeRangeFilter.have_value) { result.setTypeOfLastDateTimeRangeFilter(fieldGeneratorTypeOfLastDateTimeRangeFilter.value); fieldGeneratorTypeOfLastDateTimeRangeFilter.have_value = false; } }
protected override void finish() { FlightSegmentFilterJSON result = new FlightSegmentFilterJSON(); 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.extraFlightSegmentFilterAppendPair(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 abstract void handle_result(FlightSegmentFilterJSON new_result);
protected override void handle_result(FlightSegmentFilterJSON result) { top.value.Add(result); }
protected override void handle_result(FlightSegmentFilterJSON result) { //@@@ Debug.Assert(!have_value); have_value = true; value = result; }