protected override void handle_result(TypeValue new_value) { HomeAutomationPropertyJSON result = new HomeAutomationPropertyJSON(); result.setValue(new_value); handle_result(result); }
private void fromJSONProperties(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); JSONArrayValue json_array1 = json_value.array_value(); if (json_array1 == null) { throw new Exception("The value for field Properties of HomeAutomationQueryHintJSON is not an array."); } int count1 = json_array1.componentCount(); if (count1 < 1) { throw new Exception("The value for field Properties of HomeAutomationQueryHintJSON has too few elements."); } List <HomeAutomationPropertyJSON> vector_Properties1 = new List <HomeAutomationPropertyJSON>(count1); for (int num1 = 0; num1 < count1; ++num1) { HomeAutomationPropertyJSON convert_classy = HomeAutomationPropertyJSON.from_json(json_array1.component(num1), ignore_extras, true); vector_Properties1.Add(convert_classy); } Debug.Assert(vector_Properties1.Count >= 1); initProperties(); for (int num2 = 0; num2 < vector_Properties1.Count; ++num2) { appendProperties(vector_Properties1[num2]); } for (int num1 = 0; num1 < vector_Properties1.Count; ++num1) { } }
public void appendProperties(HomeAutomationPropertyJSON to_append) { if (!flagHasProperties) { flagHasProperties = true; storeProperties.Clear(); } Debug.Assert(flagHasProperties); storeProperties.Add(to_append); }
public void appendProperties(string chars) { HomeAutomationPropertyJSON.TypeValueKnownValues known = HomeAutomationPropertyJSON.stringToValue(chars); HomeAutomationPropertyJSON.TypeValue new_value = new HomeAutomationPropertyJSON.TypeValue(); if (known == HomeAutomationPropertyJSON.TypeValueKnownValues.Value__none) { new_value.in_known_list = false; new_value.string_value = chars; } else { new_value.in_known_list = true; new_value.list_value = known; } appendProperties(new_value); }
protected override void handle_result(HomeAutomationPropertyJSON result) { top.value.Add(result); }
protected override void handle_result(HomeAutomationPropertyJSON result) { //@@@ Debug.Assert(!have_value); have_value = true; value = result; }
protected abstract void handle_result(HomeAutomationPropertyJSON new_result);