private void fromJSONPrices(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); UberPriceEstimatesResponseJSON convert_classy = UberPriceEstimatesResponseJSON.from_json(json_value, ignore_extras, true); setPrices(convert_classy); }
public void setPrices(UberPriceEstimatesResponseJSON new_value) { if (flagHasPrices) { } flagHasPrices = true; storePrices = new_value; }
protected void finish(UberPriceEstimatesResponseJSON result) { if (fieldGeneratorprices.have_value) { result.initprices(); int count = fieldGeneratorprices.value.Count; for (int num = 0; num < count; ++num) { result.appendprices(fieldGeneratorprices.value[num]); } fieldGeneratorprices.value.Clear(); fieldGeneratorprices.have_value = false; } else if ((!(result.hasprices())) && !allow_incomplete) { error("When parsing the object for %what%, the \"prices\" field was missing."); } }
protected override void finish() { UberPriceEstimatesResponseJSON result = new UberPriceEstimatesResponseJSON(); 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.extraUberPriceEstimatesResponseAppendPair(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 override void handle_result(UberPriceEstimatesResponseJSON result) { top.value.Add(result); }
protected override void handle_result(UberPriceEstimatesResponseJSON result) { //@@@ Debug.Assert(!have_value); have_value = true; value = result; }
protected abstract void handle_result(UberPriceEstimatesResponseJSON new_result);