Example #1
0
		public Task Initialize(QueryFilter filter = null)
		{
			return Task.Factory.StartNew(() => TwitterClient.Current.Statuses.DoReadLockAction(() =>
			{
				// ロック中はステータスの追加が発生しないので、この間にコレクションのインスタンスを作り直す
				this.Filter = filter;
				this.Statuses = new ObservableSynchronizedCollection<Status>(
					TwitterClient.Current.Statuses.Get(this.Predicate));
				this.UnreadCount = this.Statuses.Count;
			}));
		}
Example #2
0
		public async void ChangeFilter(QueryFilter filter = null)
		{
			this.currentFilter = filter;
			await this.Timeline.Initialize(filter);
		}