예제 #1
0
        public bool FavoriteTweet(ITweetDTO tweetDTO)
        {
            if (tweetDTO == null)
            {
                return(false);
            }

            // if the favourite operation failed the tweet should still be favourited if it previously was
            tweetDTO.Favorited |= _tweetQueryExecutor.FavoriteTweet(tweetDTO);
            return(tweetDTO.Favorited);
        }
예제 #2
0
 public Task <ITwitterResult <ITweetDTO> > FavoriteTweet(IFavoriteTweetParameters parameters, ITwitterRequest request)
 {
     return(_tweetQueryExecutor.FavoriteTweet(parameters, request));
 }