Exemplo n.º 1
0
 public void Validate(IGetAccountSettingsParameters parameters)
 {
     if (parameters == null)
     {
         throw new ArgumentNullException(nameof(parameters));
     }
 }
Exemplo n.º 2
0
        public string GetAccountSettingsQuery(IGetAccountSettingsParameters parameters)
        {
            var query = new StringBuilder(Resources.Account_GetSettings);

            query.AddFormattedParameterToQuery(parameters.FormattedCustomQueryParameters);

            return(query.ToString());
        }
        public Task <ITwitterResult <IAccountSettingsDTO> > GetAccountSettings(IGetAccountSettingsParameters parameters, ITwitterRequest request)
        {
            var query = _accountSettingsQueryGenerator.GetAccountSettingsQuery(parameters);

            request.Query.Url        = query;
            request.Query.HttpMethod = HttpMethod.GET;
            return(_twitterAccessor.ExecuteRequest <IAccountSettingsDTO>(request));
        }
Exemplo n.º 4
0
 public void Validate(IGetAccountSettingsParameters parameters)
 {
     _accountSettingsClientParametersValidator.Validate(parameters);
 }
Exemplo n.º 5
0
        public async Task <IAccountSettings> GetAccountSettingsAsync(IGetAccountSettingsParameters parameters)
        {
            var twitterResult = await _accountRequester.GetAccountSettingsAsync(parameters).ConfigureAwait(false);

            return(_client.Factories.CreateAccountSettings(twitterResult?.Model));
        }
 public Task <ITwitterResult <IAccountSettingsDTO> > GetAccountSettings(IGetAccountSettingsParameters parameters)
 {
     _validator.Validate(parameters);
     return(ExecuteRequest(request => _accountSettingsController.GetAccountSettings(parameters, request)));
 }
Exemplo n.º 7
0
 public Task <ITwitterResult <IAccountSettingsDTO> > GetAccountSettings(IGetAccountSettingsParameters parameters, ITwitterRequest request)
 {
     return(_accountSettingsQueryExecutor.GetAccountSettings(parameters, request));
 }