Пример #1
0
 public void Dispose()
 {
     if (StreamingClient != null) {
         StreamingClient.Dispose ();
         StreamingClient = null;
     }
 }
Пример #2
0
 public void Dispose()
 {
     if (StreamingClient != null)
     {
         StreamingClient.Dispose();
         StreamingClient = null;
     }
 }
Пример #3
0
        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
        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);
            }));
        }