示例#1
0
 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));
 }
示例#2
0
 public EventDescriptionEventArgs(EventDescription desc)
 {
     this.EventDescription = desc;
 }
示例#3
0
 public static void Remove(EventDescription evd)
 {
     events.Remove(evd);
     OnEventChanged(EventArgs.Empty);
 }
示例#4
0
 public static void Remove(EventDescription evd)
 {
     events.Remove(evd);
     OnEventChanged(EventArgs.Empty);
 }
示例#5
0
 public EventDescriptionEventArgs(EventDescription desc)
 {
     this.EventDescription = desc;
 }
 public NotificationItemViewModel(EventDescription description, bool enableClose = true)
 {
     this.description = description;
     this.EnableClose = enableClose;
 }
示例#7
0
 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));
 }