Exemplo n.º 1
0
 protected override bool FilterStatus(Dulcet.Twitter.TwitterStatusBase status)
 {
     var s = status as TwitterStatus;
     if (s == null)
     {
         var d = status as TwitterDirectMessage;
         if (d == null)
             return false;
         else
             return MatchingUtil.MatchAccount(d.Recipient.ScreenName, needle) || MatchingUtil.MatchAccount(d.Sender.ScreenName, needle);
     }
     else
     {
         return AccountStorage.Accounts
             .Where(i => MatchingUtil.MatchAccount(i.ScreenName, needle))
             .Any(i => IsMemberOfTimeline(s, i));
     }
 }
Exemplo n.º 2
0
 protected virtual bool Match(string haystack, string needle)
 {
     return(MatchingUtil.MatchAccount(haystack, needle));
 }
Exemplo n.º 3
0
 public override bool FilterUser(Dulcet.Twitter.TwitterUser user)
 {
     return AccountStorage.Accounts.Where(i => MatchingUtil.MatchAccount(i.ScreenName, needle))
         .Any(i => i.IsFollowing(user.NumericId));
 }