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

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

Check if the specified user is a subscriber of the specified list. Returns the user if they are subscriber.
ref: https://dev.twitter.com/docs/api/1.1/get/lists/subscribers/show
public static IsSubscribedToList ( this session, long listId, string slug, long userId, string screenName = "", string ownerScreenName = "", long ownerId ) : 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.
userId long The ID of the user for whom to return results for. Helpful for disambiguating when a valid user ID is also a valid screen name.
screenName string The screen name of the user for whom to return results for. Helpful for disambiguating when a valid screen name is also a user ID.
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.
Результат Task
        public static async Task<User> IsSubscribedToList(this ITwitterSession session, long listId, string slug,
    long userId = 0, string screenName = "", string ownerScreenName = "", long ownerId = 0)
        {
            var parameters = new TwitterParametersCollection();
            parameters.Create(list_id: listId, slug: slug, owner_id: ownerId, owner_screen_name: ownerScreenName, user_id: userId, screen_name: screenName);

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