示例#1
0
        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));
            }));
        }
示例#2
0
        public IEnumerable <IUser> GetListSubscribers(ITwitterListIdentifier list, int maximumNumberOfUsersToRetrieve = 100)
        {
            var usersDTO = _twitterListQueryExecutor.GetListSubscribers(list, maximumNumberOfUsersToRetrieve);

            return(_userFactory.GenerateUsersFromDTO(usersDTO));
        }