Following() public static method

Creates the relative Uri for retrieving the users the current user follows
public static Following ( ) : Uri
return System.Uri
        public Task <IReadOnlyList <User> > GetAllFollowing(string login, ApiOptions options)
        {
            Ensure.ArgumentNotNullOrEmptyString(login, nameof(login));
            Ensure.ArgumentNotNull(options, nameof(options));

            return(ApiConnection.GetAll <User>(ApiUrls.Following(login), options));
        }
Beispiel #2
0
        /// <summary>
        /// List who a user is following
        /// </summary>
        /// <param name="login">The login name of the user</param>
        /// <remarks>
        /// See the <a href="http://developer.github.com/v3/users/followers/#list-users-followed-by-another-user">API documentation</a> for more information.
        /// </remarks>
        /// <returns>A <see cref="IReadOnlyList{User}"/> of <see cref="User"/>s that the passed user follows.</returns>
        public Task <IReadOnlyList <User> > GetFollowing(string login)
        {
            Ensure.ArgumentNotNullOrEmptyString(login, "login");

            return(ApiConnection.GetAll <User>(ApiUrls.Following(login)));
        }
        public Task <IReadOnlyList <User> > GetAllFollowingForCurrent(ApiOptions options)
        {
            Ensure.ArgumentNotNull(options, nameof(options));

            return(ApiConnection.GetAll <User>(ApiUrls.Following(), options));
        }
Beispiel #4
0
 /// <summary>
 /// List who the authenticated user is following
 /// </summary>
 /// <remarks>
 /// See the <a href="http://developer.github.com/v3/users/followers/#list-users-followed-by-another-user">API documentation</a> for more information.
 /// </remarks>
 /// <returns>A <see cref="IReadOnlyList{User}"/> of <see cref="User"/>s that the authenticated user follows.</returns>
 public Task <IReadOnlyList <User> > GetFollowingForCurrent()
 {
     return(ApiConnection.GetAll <User>(ApiUrls.Following()));
 }