private void fromJSONTemperature(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); HomeAutomationTemperatureJSON convert_classy = HomeAutomationTemperatureJSON.from_json(json_value, ignore_extras, true); setTemperature(convert_classy); }
public void setTemperature(HomeAutomationTemperatureJSON new_value) { if (flagHasTemperature) { } flagHasTemperature = true; storeTemperature = new_value; }
protected override void finish() { HomeAutomationTemperatureJSON result = new HomeAutomationTemperatureJSON(); 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.extraHomeAutomationTemperatureAppendPair(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(HomeAutomationTemperatureJSON result) { if (fieldGeneratorTemperature.have_value) { result.setTemperatureText(fieldGeneratorTemperature.value); fieldGeneratorTemperature.have_value = false; } else if ((!(result.hasTemperature())) && !allow_incomplete) { error("When parsing the object for %what%, the \"Temperature\" field was missing."); } if (fieldGeneratorUnit.have_value) { result.setUnit(fieldGeneratorUnit.value); fieldGeneratorUnit.have_value = false; } else if ((!(result.hasUnit())) && !allow_incomplete) { error("When parsing the object for %what%, the \"Unit\" field was missing."); } }
protected override void handle_result(HomeAutomationTemperatureJSON result) { top.value.Add(result); }
protected override void handle_result(HomeAutomationTemperatureJSON result) { //@@@ Debug.Assert(!have_value); have_value = true; value = result; }
protected abstract void handle_result(HomeAutomationTemperatureJSON new_result);