public Task <IReadOnlyList <User> > GetAll(string login, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(login, nameof(login)); Ensure.ArgumentNotNull(options, nameof(options)); return(ApiConnection.GetAll <User>(ApiUrls.Followers(login), options)); }
/// <summary> /// List a user’s followers /// </summary> /// <param name="login">The login name for the user</param> /// <remarks> /// See the <a href="http://developer.github.com/v3/users/followers/#list-followers-of-a-user">API documentation</a> for more information. /// </remarks> /// <returns>A <see cref="IReadOnlyList{User}"/> of <see cref="User"/>s that follow the passed user.</returns> public Task <IReadOnlyList <User> > GetAll(string login) { Ensure.ArgumentNotNullOrEmptyString(login, "login"); return(ApiConnection.GetAll <User>(ApiUrls.Followers(login))); }
public Task <IReadOnlyList <User> > GetAllForCurrent(ApiOptions options) { Ensure.ArgumentNotNull(options, nameof(options)); return(ApiConnection.GetAll <User>(ApiUrls.Followers(), options)); }
/// <summary> /// List the authenticated user’s followers /// </summary> /// <remarks> /// See the <a href="http://developer.github.com/v3/users/followers/#list-followers-of-a-user">API documentation</a> for more information. /// </remarks> /// <returns>A <see cref="IReadOnlyList{User}"/> of <see cref="User"/>s that follow the authenticated user.</returns> public Task <IReadOnlyList <User> > GetAllForCurrent() { return(ApiConnection.GetAll <User>(ApiUrls.Followers())); }