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); }
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); }
public static User Get(string json_string) { return(JsonObjects.Get <User>(json_string)); }
public static Chat Get(string json_string) { return(JsonObjects.Get <Chat>(json_string)); }