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