public ITwitterPageIterator <ITwitterResult <IUserCursorQueryResultDTO> > GetListSubscribersIterator(IGetListSubscribersParameters parameters, ITwitterRequest request) { return(_pageCursorIteratorFactories.Create(parameters, cursor => { var cursoredParameters = new GetListSubscribersParameters(parameters) { Cursor = cursor }; return _twitterListQueryExecutor.GetListSubscribers(cursoredParameters, new TwitterRequest(request)); })); }
public IEnumerable <IUser> GetListSubscribers(ITwitterListIdentifier list, int maximumNumberOfUsersToRetrieve = 100) { var usersDTO = _twitterListQueryExecutor.GetListSubscribers(list, maximumNumberOfUsersToRetrieve); return(_userFactory.GenerateUsersFromDTO(usersDTO)); }