コード例 #1
0
ファイル: SearchStatuses.cs プロジェクト: kazuki/ktwt
        void IStreamingHandler.Streaming_StatusArrived(object sender, StatusArrivedEventArgs e)
        {
            StreamingClient c = sender as StreamingClient;

            Account.Dispatcher.BeginInvoke(new EmptyDelegate(delegate() {
                Statuses.Add(e.Status);
            }));
        }
コード例 #2
0
ファイル: TwitterAccount.cs プロジェクト: kazuki/ktwt
        void IStreamingHandler.Streaming_StatusArrived(object sender, StatusArrivedEventArgs e)
        {
            StreamingClient c = sender as StreamingClient;

            _dispatcher.BeginInvoke(new EmptyDelegate(delegate() {
                if (!IsIncludeOtherStatus)
                {
                    if (!_client.FriendSet.Contains(e.Status.User.ID))
                    {
                        return;
                    }
                    if (e.Status.InReplyToUserId > 0)
                    {
                        if (!_client.FriendSet.Contains(e.Status.InReplyToUserId))
                        {
                            return;
                        }
                    }
                    if (e.Status.RetweetedStatus != null && e.Status.RetweetedStatus.User != null)
                    {
                        if (e.Status.RetweetedStatus.User.ID == SelfUserID)
                        {
                            return;
                        }
                    }
                }
                e.Status.AccountInfo = this;
                if (IsMention(e.Status))
                {
                    Mentions.Add(e.Status);
                    if (!_mgr.HomeIncludeMentions)
                    {
                        return;
                    }
                }
                HomeTimeline.Add(e.Status);
            }));
        }
コード例 #3
0
ファイル: SearchStatuses.cs プロジェクト: kazuki/ktwt
 void IStreamingHandler.Streaming_StatusArrived(object sender, StatusArrivedEventArgs e)
 {
     StreamingClient c = sender as StreamingClient;
     Account.Dispatcher.BeginInvoke (new EmptyDelegate (delegate () {
         Statuses.Add (e.Status);
     }));
 }
コード例 #4
0
ファイル: TwitterAccount.cs プロジェクト: kazuki/ktwt
 void IStreamingHandler.Streaming_StatusArrived(object sender, StatusArrivedEventArgs e)
 {
     StreamingClient c = sender as StreamingClient;
     _dispatcher.BeginInvoke (new EmptyDelegate (delegate () {
         if (!IsIncludeOtherStatus) {
             if (!_client.FriendSet.Contains (e.Status.User.ID))
                 return;
             if (e.Status.InReplyToUserId > 0) {
                 if (!_client.FriendSet.Contains (e.Status.InReplyToUserId))
                     return;
             }
             if (e.Status.RetweetedStatus != null && e.Status.RetweetedStatus.User != null) {
                 if (e.Status.RetweetedStatus.User.ID == SelfUserID)
                     return;
             }
         }
         e.Status.AccountInfo = this;
         if (IsMention (e.Status)) {
             Mentions.Add (e.Status);
             if (!_mgr.HomeIncludeMentions)
                 return;
         }
         HomeTimeline.Add (e.Status);
     }));
 }