public void updateChat(UInt32 id) { CookieAwareWebClient cwc = new CookieAwareWebClient(); System.IO.Stream stream = cwc.downloadURL(String.Format(messagesUrl, id)); if (stream != null) chat = ParseJson<ChatMessages>.ReadObject(stream); }
public void updateChat(UInt32 id) { CookieAwareWebClient cwc = new CookieAwareWebClient(); System.IO.Stream stream = cwc.downloadURL(String.Format(messagesUrl, id)); if (stream != null) { chat = ParseJson <ChatMessages> .ReadObject(stream); } }
public void updateChat(UInt32 id) { System.IO.Stream messageStream; messageStream = downloadURL(String.Format(messagesJson,id)); if (messageStream != null) { DataContractJsonSerializer ser = new DataContractJsonSerializer(typeof(ChatMessages)); chat = (ChatMessages)ser.ReadObject(messageStream); } }