void IStreamingHandler.Streaming_StatusArrived(object sender, StatusArrivedEventArgs e) { StreamingClient c = sender as StreamingClient; Account.Dispatcher.BeginInvoke(new EmptyDelegate(delegate() { Statuses.Add(e.Status); })); }
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); })); }
void IStreamingHandler.Streaming_StatusArrived(object sender, StatusArrivedEventArgs e) { StreamingClient c = sender as StreamingClient; Account.Dispatcher.BeginInvoke (new EmptyDelegate (delegate () { Statuses.Add (e.Status); })); }
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); })); }