Пример #1
0
        public void LoadSingleTweet(ClientTweet tweet, string tweetID)
        {
            PacketSingleTweet packet = new PacketSingleTweet(tweetID);

            if (tweet.uiProperty.parentTweet == null)
            {
                RequestSingleTweetPacket <ClientTweet>(packet, tweet.uiProperty, responseInstence.SingleTweet);
            }
            else
            {
                RequestSingleTweetPacket <ClientTweet>(packet, tweet.uiProperty.parentTweet, responseInstence.SingleTweet);
            }
        }
Пример #2
0
        private void LoadDeahwaThread(object obj)
        {
            ClientTweet tweet = obj as ClientTweet;

            if (tweet == null)
            {
                return;
            }
            PacketSingleTweet parameter = new PacketSingleTweet(tweet.originalTweet.in_reply_to_status_id_str);
            string            json      = WebInstence.SyncRequest(parameter);
            ClientTweet       dhTweet   = JsonConvert.DeserializeObject <ClientTweet>(json);

            if (dhTweet == null)
            {
                DalsaeInstence.ShowMessageBox("이전 대화 유저가 잠금 계정 혹은 차단된 상태입니다.", "오류");
            }
            else
            {
                dhTweet.Init();
                UIProperty.DeleAddSingleTweet dele = new UIProperty.DeleAddSingleTweet(tweet.uiProperty.AddSingleTweet);
                Application.Current.Dispatcher.BeginInvoke
                    (dele, new object[] { dhTweet, tweet.uiProperty.isQtTweet ? tweet.uiProperty : tweet.uiProperty.parentTweet, false });
            }
        }