Пример #1
0
    public void setPlatform(TypePlatformKnownValues new_value)
    {
        TypePlatform new_full_value = new TypePlatform();

        Debug.Assert(new_value != TypePlatformKnownValues.Platform__none);
        new_full_value.in_known_list = true;
        new_full_value.list_value    = new_value;
        setPlatform(new_full_value);
    }
Пример #2
0
    public static string  stringFromPlatform(TypePlatformKnownValues the_enum)
    {
        switch (the_enum)
        {
        case TypePlatformKnownValues.Platform_Android:
            return("Android");

        case TypePlatformKnownValues.Platform_iOS:
            return("iOS");

        default:
            Debug.Assert(false);
            return(null);
        }
    }
Пример #3
0
            protected override void handle_result(string result)
            {
                TypePlatformKnownValues known     = stringToPlatform(result);
                TypePlatform            new_value = new TypePlatform();

                if (known == TypePlatformKnownValues.Platform__none)
                {
                    new_value.in_known_list = false;
                    new_value.string_value  = result;
                }
                else
                {
                    new_value.in_known_list = true;
                    new_value.list_value    = known;
                }
                handle_result(new_value);
            }
Пример #4
0
    public void setPlatform(string chars)
    {
        TypePlatformKnownValues known     = stringToPlatform(chars);
        TypePlatform            new_value = new TypePlatform();

        if (known == TypePlatformKnownValues.Platform__none)
        {
            new_value.in_known_list = false;
            new_value.string_value  = chars;
        }
        else
        {
            new_value.in_known_list = true;
            new_value.list_value    = known;
        }
        setPlatform(new_value);
    }