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

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

Returns the authenticating user's lists the specified user has been added to.
ref: https://dev.twitter.com/docs/api/1.1/get/lists/memberships
public static GetMyListsUserIsMemberOf ( 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> GetMyListsUserIsMemberOf(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>());
        }