private static void Register(EventDescription description, bool enforceRaise = false) { // check is muted if ((description.TargetTweet != null && FilterHelper.IsMuted(description.TargetTweet.Status)) || (description.SourceUser != null && FilterHelper.IsMuted(description.SourceUser.TwitterUser)) || (description.TargetUser != null && FilterHelper.IsMuted(description.TargetUser.TwitterUser))) return; events.AddLast(description); OnEventChanged(EventArgs.Empty); if (enforceRaise || !Setting.Instance.NotificationProperty.IsInvisibleSomethingEnabled || !IsBlacklisted(description.SourceUser.TwitterUser)) OnEventRegistered(new EventDescriptionEventArgs(description)); }
public EventDescriptionEventArgs(EventDescription desc) { this.EventDescription = desc; }
public static void Remove(EventDescription evd) { events.Remove(evd); OnEventChanged(EventArgs.Empty); }
public NotificationItemViewModel(EventDescription description, bool enableClose = true) { this.description = description; this.EnableClose = enableClose; }
private static void Register(EventDescription description) { // check is muted if ((description.TargetTweet != null && FilterHelper.IsMuted(description.TargetTweet.Status)) || (description.SourceUser != null && FilterHelper.IsMuted(description.SourceUser.TwitterUser)) || (description.TargetUser != null && FilterHelper.IsMuted(description.TargetUser.TwitterUser))) return; events.AddLast(description); OnEventChanged(EventArgs.Empty); OnEventRegistered(new EventDescriptionEventArgs(description)); }