Beispiel #1
0
        protected override void handle_result(TypeValue new_value)
        {
            HomeAutomationSpecifierJSON result = new HomeAutomationSpecifierJSON();

            result.setValue(new_value);
            handle_result(result);
        }
    private void  fromJSONSpecifier(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        HomeAutomationSpecifierJSON convert_classy = HomeAutomationSpecifierJSON.from_json(json_value, ignore_extras, true);

        setSpecifier(convert_classy);
    }
 public void setSpecifier(HomeAutomationSpecifierJSON new_value)
 {
     if (flagHasSpecifier)
     {
     }
     flagHasSpecifier = true;
     storeSpecifier   = new_value;
 }
 public void setSpecifier(string chars)
 {
     HomeAutomationSpecifierJSON.TypeValueKnownValues known     = HomeAutomationSpecifierJSON.stringToValue(chars);
     HomeAutomationSpecifierJSON.TypeValue            new_value = new HomeAutomationSpecifierJSON.TypeValue();
     if (known == HomeAutomationSpecifierJSON.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;
     }
     setSpecifier(new_value);
 }
Beispiel #5
0
 protected override void handle_result(HomeAutomationSpecifierJSON result)
 {
     top.value.Add(result);
 }
Beispiel #6
0
        protected override void handle_result(HomeAutomationSpecifierJSON result)
        {
//@@@            Debug.Assert(!have_value);
            have_value = true;
            value      = result;
        }
Beispiel #7
0
 protected abstract void handle_result(HomeAutomationSpecifierJSON new_result);