Example #1
0
        public cMsg(string Json)
        {
            this.Json = Json;

            jMsg Message = JsonConvert.DeserializeObject <jMsg>(Json);

            this.type = Message.type;
        }
Example #2
0
        public T Read <T>()
        {
            if (Json == null)
            {
                return(default(T));
            }

            jMsg <T> Tmp = JsonConvert.DeserializeObject <jMsg <T> >(Json);

            return(Tmp.data);
        }