StarredByUser() public static method

Returns the Uri that lists the starred repositories for the specified user.
public static StarredByUser ( string user ) : Uri
user string The user that has the stars
return Uri
Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        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));
        }
Esempio n. 3
0
        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));
        }
Esempio n. 4
0
        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));
        }
Esempio n. 5
0
        /// <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)));
        }