public void HandleTweetEvent(TweetEventArgs args) { switch (args.Type) { case ClickType.TweetLike: application.User.LikeTweet(args.Tweet); break; case ClickType.TweetRetweet: application.User.RetweetTweet(args.Tweet); break; default: return; } UpdateMessage(args.View); }
public void HandleTweetLiked() { var args = new TweetEventArgs(ClickType.TweetLike, this, tweet); tweetDelegate?.Invoke(args); }