BoxKite.Twitter.FriendsFollowersExtensions.GetFriendships C# (CSharp) Метод

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

Returns the relationships of the authenticating user to the comma-separated list of up to 100 screen_names or user_ids provided. Values for connections can be: following, following_requested, followed_by, none.
ref : https://dev.twitter.com/docs/api/1.1/get/friendships/lookup
public static GetFriendships ( this session, IEnumerable screenNames = null, IEnumerable userIds = null ) : Task>
session this
screenNames IEnumerable list of screen_names to check
userIds IEnumerable list of user_ids to check against
Результат Task>
        public async static Task<TwitterResponseCollection<FriendshipLookupResponse>> GetFriendships(this IUserSession session, IEnumerable<string> screenNames = null, IEnumerable<long> userIds = null)
        {
            var parameters = new TwitterParametersCollection();
            parameters.CreateCollection(screen_names: screenNames, user_ids:userIds);

            if (parameters.EnsureEitherOr("screen_name", "user_id").IsFalse())
            {
                return session.MapParameterError<TwitterResponseCollection<FriendshipLookupResponse>>(
                        "Either screen_names or user_ids required");
            }

            var url = TwitterApi.Resolve("/1.1/friendships/lookup.json");
            return await session.GetAsync(url, parameters)
                          .ContinueWith(f => f.MapToMany<FriendshipLookupResponse>());
        }