public Task <IReadOnlyList <Repository> > GetAllForUser(string user, StarredRequest request) { Ensure.ArgumentNotNullOrEmptyString(user, "user"); Ensure.ArgumentNotNull(request, "request"); return(ApiConnection.GetAll <Repository>(ApiUrls.StarredByUser(user), request.ToParametersDictionary())); }
public Task <IReadOnlyList <RepositoryStar> > GetAllForCurrentWithTimestamps(StarredRequest request, ApiOptions options) { Ensure.ArgumentNotNull(request, nameof(request)); Ensure.ArgumentNotNull(options, nameof(options)); return(ApiConnection.GetAll <RepositoryStar>(ApiUrls.Starred(), request.ToParametersDictionary(), AcceptHeaders.StarCreationTimestamps, options)); }
public Task <IReadOnlyList <Repository> > GetAllForCurrent(StarredRequest request, ApiOptions options) { Ensure.ArgumentNotNull(request, nameof(request)); Ensure.ArgumentNotNull(options, nameof(options)); return(ApiConnection.GetAll <Repository>(ApiUrls.Starred(), request.ToParametersDictionary(), options)); }
public Task<IReadOnlyList<Repository>> GetAllForUser(string user, StarredRequest request) { Ensure.ArgumentNotNullOrEmptyString(user, "user"); Ensure.ArgumentNotNull(request, "request"); return ApiConnection.GetAll<Repository>(ApiUrls.StarredByUser(user), request.ToParametersDictionary()); }
public Task<IReadOnlyList<Repository>> GetAllForCurrent(StarredRequest request) { Ensure.ArgumentNotNull(request, "request"); return ApiConnection.GetAll<Repository>(ApiUrls.Starred(), request.ToParametersDictionary()); }
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>> GetAllForCurrentWithTimestamps(StarredRequest request) { Ensure.ArgumentNotNull(request, "request"); return ApiConnection.GetAll<RepositoryStar>(ApiUrls.Starred(), request.ToParametersDictionary(), AcceptHeaders.StarCreationTimestamps); }
/// <summary> /// Retrieves all of the <see cref="Repository"/>(ies) starred by the specified user with star creation timestamps. /// </summary> /// <param name="user">The login of the user</param> /// <param name="request">Star-specific request parameters that sort the results</param> /// <param name="options">Options for changing the API response</param> /// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception> /// <returns> /// A <see cref="IReadOnlyPagedCollection{RepoStar}"/> of <see cref="Repository"/>(ies) starred by the specified user, /// sorted according to the passed request parameters and with star creation timestamps. /// </returns> public Task <IReadOnlyList <RepositoryStar> > GetAllForUserWithTimestamps(string user, StarredRequest request, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(user, "user"); Ensure.ArgumentNotNull(request, "request"); Ensure.ArgumentNotNull(options, "options"); return(ApiConnection.GetAll <RepositoryStar>(ApiUrls.StarredByUser(user), request.ToParametersDictionary(), AcceptHeaders.StarCreationTimestamps, options)); }