Exemple #1
0
        public static Message Get(string json_string)
        {
            var ret = JsonObjects.Get <Message>(json_string);
            var cht = JsonConvert.DeserializeObject <Chat>(ret.Content["chat"].ToString());

            ret.ToChat = cht;
            return(ret);
        }
Exemple #2
0
        public static Request Get(string json_string)
        {
            var ret = JsonObjects.Get <Request>(json_string);

            var msg = JsonConvert.DeserializeObject <Message>(ret.Content["message"].ToString());

            if (msg != null)
            {
                var cht = JsonConvert.DeserializeObject <Chat>(msg.Content["chat"].ToString());
                msg.ToChat = cht;
            }

            return(ret);
        }
Exemple #3
0
 public static User Get(string json_string)
 {
     return(JsonObjects.Get <User>(json_string));
 }
Exemple #4
0
 public static Chat Get(string json_string)
 {
     return(JsonObjects.Get <Chat>(json_string));
 }