예제 #1
0
        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);
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
 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);
     }            
     
 }