示例#1
0
        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);
        }
示例#2
0
        public void HandleTweetLiked()
        {
            var args = new TweetEventArgs(ClickType.TweetLike, this, tweet);

            tweetDelegate?.Invoke(args);
        }