Example #1
0
		public bool Match(Status status)
		{
			if (this.allaccount)
			{
				return TwitterClient.Current.Accounts
					.Where(a => a.IsInitialized)
					.Select(a => a.User)
					.Any(status.IsMention);
			}

			if (this.Regex != null)
			{
				if (status.Entities != null && status.Entities.UserMentions != null)
				{
					return status.Entities.UserMentions.Any(um => this.MatchRegex(um.User.ScreenName.Value));
				}

				return false;
			}

			return this.Bool(status.IsMention(this.screenName));
		}