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());
        }
Exemple #3
0
 public void Validate(IDeleteMessageParameters parameters)
 {
     _messagesClientParametersValidator.Validate(parameters);
 }
Exemple #4
0
 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));
 }
Exemple #6
0
 public Task DestroyMessage(IDeleteMessageParameters parameters)
 {
     return(_messageRequester.DestroyMessage(parameters));
 }
Exemple #7
0
 public Task <ITwitterResult> DestroyMessageAsync(IDeleteMessageParameters parameters, ITwitterRequest request)
 {
     return(_messageQueryExecutor.DestroyMessageAsync(parameters, request));
 }