protected override void finish() { HolidaysOnDateLookupConversationStateJSON result = new HolidaysOnDateLookupConversationStateJSON(); 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.extraHolidaysOnDateLookupConversationStateAppendPair(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(HolidaysOnDateLookupConversationStateJSON result) { if (fieldGeneratorDateAndTimeKind.have_value) { result.setDateAndTimeKind(); fieldGeneratorDateAndTimeKind.have_value = false; } else if ((!(result.hasDateAndTimeKind())) && !allow_incomplete) { error("When parsing the object for %what%, the \"DateAndTimeKind\" field was missing."); } if (fieldGeneratorDateAndOrTimeSpec.have_value) { result.setDateAndOrTimeSpec(fieldGeneratorDateAndOrTimeSpec.value); fieldGeneratorDateAndOrTimeSpec.have_value = false; } else if ((!(result.hasDateAndOrTimeSpec())) && !allow_incomplete) { error("When parsing the object for %what%, the \"DateAndOrTimeSpec\" field was missing."); } }
protected override void handle_result(HolidaysOnDateLookupConversationStateJSON result) { top.value.Add(result); }
protected override void handle_result(HolidaysOnDateLookupConversationStateJSON result) { //@@@ Debug.Assert(!have_value); have_value = true; value = result; }
protected abstract void handle_result(HolidaysOnDateLookupConversationStateJSON new_result);