BoxKite.Twitter.ListExtensions.GetMembersOnList C# (CSharp) Метод

GetMembersOnList() публичный статический Метод

Returns the members of the specified list. Private list members will only be shown if the authenticated user owns the specified list.
ref: https://dev.twitter.com/docs/api/1.1/get/lists/members
public static GetMembersOnList ( this session, long listId, string slug, string ownerScreenName = "", long ownerId, long cursor = -1 ) : Task
session this
listId long The numerical id of the list.
slug string You can identify a list by its slug instead of its numerical id. If you decide to do so, note that you'll also have to specify the list owner using the owner_id or owner_screen_name parameters.
ownerScreenName string The screen name of the user who owns the list being requested by a slug.
ownerId long The user ID of the user who owns the list being requested by a slug.
cursor long Breaks the results into pages.
Результат Task
        public static async Task<UserListDetailedCursored> GetMembersOnList(this IUserSession session, long listId, string slug,
            string ownerScreenName = "", long ownerId = 0, long cursor = -1)
        {
            var parameters = new TwitterParametersCollection();
            parameters.Create(list_id: listId, slug: slug, owner_id: ownerId, owner_screen_name: ownerScreenName, skip_status: true, include_entities: true, cursor:cursor);

            return await session.GetAsync(TwitterApi.Resolve("/1.1/lists/members.json"), parameters)
                          .ContinueWith(c => c.MapToSingle<UserListDetailedCursored>());
        }