public void Validate(IDeleteMessageParameters parameters) { if (parameters == null) { throw new ArgumentNullException(nameof(parameters)); } }
public string GetDestroyMessageQuery(IDeleteMessageParameters parameters) { var query = new StringBuilder(Resources.Message_Destroy); query.AddParameterToQuery("id", parameters.MessageId); query.AddFormattedParameterToQuery(parameters.FormattedCustomQueryParameters); return(query.ToString()); }
public void Validate(IDeleteMessageParameters parameters) { _messagesClientParametersValidator.Validate(parameters); }
public Task <ITwitterResult> DestroyMessage(IDeleteMessageParameters parameters) { _messagesClientParametersValidator.Validate(parameters); return(ExecuteRequest(request => _messageController.DestroyMessage(parameters, request))); }
public Task <ITwitterResult> DestroyMessageAsync(IDeleteMessageParameters parameters, ITwitterRequest request) { request.Query.Url = _messageQueryGenerator.GetDestroyMessageQuery(parameters); request.Query.HttpMethod = HttpMethod.DELETE; return(_twitterAccessor.ExecuteRequestAsync(request)); }
public Task DestroyMessage(IDeleteMessageParameters parameters) { return(_messageRequester.DestroyMessage(parameters)); }
public Task <ITwitterResult> DestroyMessageAsync(IDeleteMessageParameters parameters, ITwitterRequest request) { return(_messageQueryExecutor.DestroyMessageAsync(parameters, request)); }