示例#1
0
 public Task <ITwitterResult <ITwitterListDTO, ITwitterList> > AddMemberToList(IAddMemberToListParameters parameters)
 {
     _validator.Validate(parameters);
     return(ExecuteRequest(async request =>
     {
         var twitterResult = await _twitterListController.AddMemberToList(parameters, request).ConfigureAwait(false);
         return _twitterResultFactory.Create(twitterResult, dto => _factories.CreateTwitterList(dto));
     }));
 }
示例#2
0
        public async Task <ITwitterResult> ExecuteRequestAsync(ITwitterRequest request)
        {
            var response = await _twitterRequestHandler.ExecuteQueryAsync(request).ConfigureAwait(false);

            return(_twitterResultFactory.Create(request, response));
        }