Пример #1
0
        public static EventTeam FromJson(JObject item)
        {
            EventTeam result = new EventTeam()
            {
                Id         = (int)item.GetValue("Id"),
                Uuid       = (string)item.GetValue("Uuid"),
                Changed    = (int)item.GetValue("Changed"),
                EventKey   = (string)item.GetValue("EventKey"),
                TeamNumber = (int)item.GetValue("TeamNumber"),
            };

            return(result);
        }
Пример #2
0
        public static EventTeam Parse(string value)
        {
            JObject   item   = JObject.Parse(value);
            EventTeam result = new EventTeam()
            {
                Id         = (int)item.GetValue("Id"),
                Uuid       = (string)item.GetValue("Uuid"),
                Changed    = (int)item.GetValue("Changed"),
                EventKey   = (string)item.GetValue("EventKey"),
                TeamNumber = (int)item.GetValue("TeamNumber"),
            };

            return(result);
        }