コード例 #1
0
ファイル: TabViewModel.cs プロジェクト: a1lic/Mystique
        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);
                    }
                }
            }
        }
コード例 #2
0
ファイル: TabViewModel.cs プロジェクト: azyobuzin/Mystique
        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);
                }
            }
        }
コード例 #3
0
 public TimelineListViewModel(TabViewModel parent, IEnumerable<IFilter> sources)
 {
     this.Parent = parent;
     this._timelineListCoreViewModel = new TimelineListCoreViewModel(parent, sources);
 }