// Publish Retweet public string GetPublishRetweetQuery(ITweetDTO tweetDTO) { if (!_tweetQueryValidator.IsTweetPublished(tweetDTO)) { return(null); } return(GetPublishRetweetQuery(tweetDTO.Id)); }
// Publish Tweet in reply to public string GetPublishTweetInReplyToQuery(ITweetDTO tweetToPublish, ITweetDTO tweetToReplyTo) { if (!_tweetQueryValidator.CanTweetDTOBePublished(tweetToPublish) || !_tweetQueryValidator.IsTweetPublished(tweetToReplyTo)) { return(null); } return(GetPublishTweetInReplyToQuery(tweetToPublish, tweetToReplyTo.Id)); }
// Publish Tweet in reply to public string GetPublishTweetInReplyToQuery(ITweetDTO tweetToPublish, ITweetDTO tweetToReplyTo) { if (!_tweetQueryValidator.CanTweetDTOBePublished(tweetToPublish) || !_tweetQueryValidator.IsTweetPublished(tweetToReplyTo)) { return(null); } string baseQuery = String.Format(Resources.Tweet_PublishInReplyTo, CleanupString(tweetToPublish.Text), tweetToReplyTo.Id); return(AddAdditionalParameters(tweetToPublish, baseQuery)); }