public Task <IReadOnlyList <RepositoryStar> > GetAllForUserWithTimestamps(string user, StarredRequest request) { Ensure.ArgumentNotNullOrEmptyString(user, "user"); Ensure.ArgumentNotNull(request, "request"); return(ApiConnection.GetAll <RepositoryStar>(ApiUrls.StarredByUser(user), request.ToParametersDictionary(), AcceptHeaders.StarCreationTimestamps)); }
public Task <IReadOnlyList <RepositoryStar> > GetAllForUserWithTimestamps(string user, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(user, nameof(user)); Ensure.ArgumentNotNull(options, nameof(options)); return(ApiConnection.GetAll <RepositoryStar>(ApiUrls.StarredByUser(user), null, AcceptHeaders.StarCreationTimestamps, options)); }
public Task <IReadOnlyList <Repository> > GetAllForUser(string user, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(user, nameof(user)); Ensure.ArgumentNotNull(options, nameof(options)); return(ApiConnection.GetAll <Repository>(ApiUrls.StarredByUser(user), options)); }
public Task <IReadOnlyList <Repository> > GetAllForUser(string user, StarredRequest request, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(user, nameof(user)); Ensure.ArgumentNotNull(request, nameof(request)); Ensure.ArgumentNotNull(options, nameof(options)); return(ApiConnection.GetAll <Repository>(ApiUrls.StarredByUser(user), request.ToParametersDictionary(), options)); }
/// <summary> /// Retrieves all of the <see cref="Repository"/>(ies) starred by the specified user. /// </summary> /// <param name="user">The login of the user</param> /// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception> /// <returns> /// A <see cref="IReadOnlyPagedCollection{Repository}"/>(ies) starred by the specified user. /// </returns> public Task <IReadOnlyList <Repository> > GetAllForUser(string user) { Ensure.ArgumentNotNullOrEmptyString(user, "user"); return(ApiConnection.GetAll <Repository>(ApiUrls.StarredByUser(user))); }