Exemple #1
0
        protected override bool FilterStatus(Dulcet.Twitter.TwitterStatusBase status)
        {
            var vm = TweetStorage.Get(status.Id);

            if (vm == null)
            {
                return(false);
            }
            return(vm.RetweetedUsers.Any(u => Match(u.TwitterUser.ScreenName, needle)));
        }
        protected override bool FilterStatus(Dulcet.Twitter.TwitterStatusBase status)
        {
            var ts = TweetStorage.Get(status.Id);

            if (ts == null)
            {
                return(false);
            }
            return(this.Range.Check(ts.FavoredUsers.Count()));
        }
Exemple #3
0
        protected override bool FilterStatus(Dulcet.Twitter.TwitterStatusBase status)
        {
            // 自分自身が登録されているフィルタ以外の一覧を取得する
            var filters = KernelService.MainWindowViewModel.ColumnOwnerViewModel.Columns
                          .SelectMany(c => c.TabItems.Select(t => t.TabProperty.TweetSources))
                          .Where(f => f.SelectMany(i => Explode(i))
                                 .OfType <ExceptedFilter>()
                                 .FirstOrDefault() == null)
                          .SelectMany(i => i);

            // どのフィルタにもキャプチャされない
            return(filters.Where(f => f.Filter(status)).FirstOrDefault() == null);
        }
Exemple #4
0
 protected override bool FilterStatus(Dulcet.Twitter.TwitterStatusBase status)
 {
     return(FilterUser(TwitterHelper.GetSuggestedUser(status)));
 }
Exemple #5
0
 protected override bool FilterStatus(Dulcet.Twitter.TwitterStatusBase status)
 {
     return(FilterUser(status.User));
 }
Exemple #6
0
 protected override bool FilterStatus(Dulcet.Twitter.TwitterStatusBase status)
 {
     return(RegularExpressions.HashRegex.Matches(status.Text).OfType <Match>()
            .Any(m => this.Match(m.Value, this.needle, this.isCaseSensitive)));
 }
Exemple #7
0
 protected override bool FilterStatus(Dulcet.Twitter.TwitterStatusBase status)
 {
     return(this.Range.Check(status.Id));
 }
Exemple #8
0
 protected override bool FilterStatus(Dulcet.Twitter.TwitterStatusBase status)
 {
     return(this.Match(status.Text, this.needle, this.isCaseSensitive));
 }