Пример #1
0
        public static Rights ReadFromJObject(JObject o)
        {
            if (o == null)
                return null;

            var r = new Rights()
            {
                Info = o.Value<int>("info") == 1,
                Trade = o.Value<int>("trade") == 1
            };

            return r;
        }
Пример #2
0
        public static Rights ReadFromJObject(JObject o)
        {
            if (o == null)
            {
                return(null);
            }

            var r = new Rights()
            {
                Info  = o.Value <int>("info") == 1,
                Trade = o.Value <int>("trade") == 1
            };

            return(r);
        }