Beispiel #1
0
 private FilterFavoriteCount()
 {
     web         = new WeakEventBinder <EventDescriptionEventArgs>(EventStorage.EventRegisteredEvent);
     web.Notify += (_, edev) =>
     {
         if (edev.EventDescription.Kind == EventKind.Favorite || edev.EventDescription.Kind == EventKind.Unfavorite)
         {
             this.RaisePartialRequireReaccept(edev.EventDescription.TargetTweet.Status);
         }
     };
 }
Beispiel #2
0
 private FilterFavoriteCount()
 {
     web = new WeakEventBinder<EventDescriptionEventArgs>(EventStorage.EventRegisteredEvent);
     web.Notify += (_, edev) =>
         {
             if (edev.EventDescription.Kind == EventKind.Favorite || edev.EventDescription.Kind == EventKind.Unfavorite)
             {
                 this.RaisePartialRequireReaccept(edev.EventDescription.TargetTweet.Status);
             }
         };
 }
Beispiel #3
0
 private FilterRetweetCount()
 {
     eweb = new WeakEventBinder<EventDescriptionEventArgs>(EventStorage.EventRegisteredEvent);
     eweb.Notify += (_, edev) =>
     {
         if (edev.EventDescription.Kind == EventKind.Retweet)
         {
             this.RaisePartialRequireReaccept(edev.EventDescription.TargetTweet.Status);
         }
     };
     tweb = new WeakEventBinder<TweetStorageChangedEventArgs>(TweetStorage.TweetStorageChangedEvent);
     tweb.Notify += (_, tcev) =>
         {
             if (tcev.ActionKind == TweetActionKind.Removed && tcev.Tweet.Status is TwitterStatus && tcev.Tweet.IsPublishedByRetweet)
             {
                 this.RaisePartialRequireReaccept(((TwitterStatus)tcev.Tweet.Status).RetweetedOriginal);
             }
         };
 }
Beispiel #4
0
 private FilterRetweetCount()
 {
     eweb         = new WeakEventBinder <EventDescriptionEventArgs>(EventStorage.EventRegisteredEvent);
     eweb.Notify += (_, edev) =>
     {
         if (edev.EventDescription.Kind == EventKind.Retweet)
         {
             this.RaisePartialRequireReaccept(edev.EventDescription.TargetTweet.Status);
         }
     };
     tweb         = new WeakEventBinder <TweetStorageChangedEventArgs>(TweetStorage.TweetStorageChangedEvent);
     tweb.Notify += (_, tcev) =>
     {
         if (tcev.ActionKind == TweetActionKind.Removed && tcev.Tweet.Status is TwitterStatus && tcev.Tweet.IsPublishedByRetweet)
         {
             this.RaisePartialRequireReaccept(((TwitterStatus)tcev.Tweet.Status).RetweetedOriginal);
         }
     };
 }