internal void NotifyNewTweetReceived(TimelineListCoreViewModel timelineListCoreViewModel, TimelineChild.TweetViewModel tweetViewModel) { if (AccountStorage.Contains(tweetViewModel.Status.User.ScreenName) || !this.IsAlive) { return; } // 正直謎設定だし、スタックトップTLの新着を伝えるってあんまり直感的じゃないから // 設定じゃなくて固定にしてよかったかもしれない if (Setting.Instance.NotificationProperty.NotifyStackTopTimeline ? this.CurrentForegroundTimeline.CoreViewModel == timelineListCoreViewModel : this.BaseTimeline.CoreViewModel == timelineListCoreViewModel) { // NewTweetsCountはプロパティが良きに計らってくれるので // _人人人人人人人人人人人人人人人_ // > インクリしていってね!!!< //  ̄YYYYYYYYYYYYYYY ̄ this.NewTweetsCount++; if (this.TabProperty.IsNotifyEnabled) { if (String.IsNullOrEmpty(this.TabProperty.NotifySoundPath)) { NotificationCore.QueueNotify(tweetViewModel); } else { NotificationCore.QueueNotify(tweetViewModel, this.TabProperty.NotifySoundPath); } } } }
internal void NotifyNewTweetReceived(TimelineListCoreViewModel timelineListCoreViewModel, TimelineChild.TweetViewModel tweetViewModel) { if (AccountStorage.Contains(tweetViewModel.Status.User.ScreenName) || !this.IsAlive) return; // 正直謎設定だし、スタックトップTLの新着を伝えるってあんまり直感的じゃないから // 設定じゃなくて固定にしてよかったかもしれない if (Setting.Instance.NotificationProperty.NotifyStackTopTimeline ? this.CurrentForegroundTimeline.CoreViewModel == timelineListCoreViewModel : this.BaseTimeline.CoreViewModel == timelineListCoreViewModel) { // NewTweetsCountはプロパティが良きに計らってくれるので // _人人人人人人人人人人人人人人人_ // > インクリしていってね!!!< //  ̄YYYYYYYYYYYYYYY ̄ this.NewTweetsCount++; if (this.TabProperty.IsNotifyEnabled) { if (String.IsNullOrEmpty(this.TabProperty.NotifySoundPath)) NotificationCore.QueueNotify(tweetViewModel); else NotificationCore.QueueNotify(tweetViewModel, this.TabProperty.NotifySoundPath); } } }
public TimelineListViewModel(TabViewModel parent, IEnumerable<IFilter> sources) { this.Parent = parent; this._timelineListCoreViewModel = new TimelineListCoreViewModel(parent, sources); }