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

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

Returns the lists the specified user has been added to. If user_id or screen_name are not provided the memberships for the authenticating user are returned.
ref: https://dev.twitter.com/docs/api/1.1/get/lists/memberships
public static GetListMembershipForUser ( this session, long userId, string screenName = "", long cursor = -1 ) : Task
session this
userId long The ID of the user for whom to return results for.
screenName string The screen name of the user for whom to return results for.
cursor long Breaks the results into pages. Provide a value of -1 to begin paging.
Результат Task
        public static async Task<UserInListCursored> GetListMembershipForUser(this ITwitterSession session, long userId = 0,
            string screenName = "", long cursor = -1)
        {
            var parameters = new TwitterParametersCollection
                                 {
                                     {"filter_to_owned_lists", false.ToString()},
                                 };
            parameters.Create(cursor: cursor, user_id: userId, screen_name: screenName);

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