示例#1
0
        private void  fromJSONStatisticType(JSONValue json_value, bool ignore_extras)
        {
            Debug.Assert(json_value != null);
            SportsStatsTypeJSON convert_classy = SportsStatsTypeJSON.from_json(json_value, ignore_extras, true);

            setStatisticType(convert_classy);
        }
示例#2
0
 public void setStatisticType(SportsStatsTypeJSON new_value)
 {
     if (flagHasStatisticType)
     {
     }
     flagHasStatisticType = true;
     storeStatisticType   = new_value;
 }
示例#3
0
 public void setStatisticType(string chars)
 {
     SportsStatsTypeJSON.TypeValueKnownValues known     = SportsStatsTypeJSON.stringToValue(chars);
     SportsStatsTypeJSON.TypeValue            new_value = new SportsStatsTypeJSON.TypeValue();
     if (known == SportsStatsTypeJSON.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;
     }
     setStatisticType(new_value);
 }