Assignees() public static method

Returns the Uri that returns all of the assignees to which issues may be assigned.
public static Assignees ( long repositoryId ) : Uri
repositoryId long The Id of the repository
return System.Uri
Esempio n. 1
0
        /// <summary>
        /// Gets all the available assignees (owner + collaborators) to which issues may be assigned.
        /// </summary>
        /// <param name="owner">The owner of the repository</param>
        /// <param name="name">The name of the repository</param>
        /// <returns></returns>
        public Task <IReadOnlyList <User> > GetForRepository(string owner, string name)
        {
            Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
            Ensure.ArgumentNotNullOrEmptyString(name, "name");

            return(ApiConnection.GetAll <User>(ApiUrls.Assignees(owner, name)));
        }
Esempio n. 2
0
        public Task <IReadOnlyList <User> > GetAllForRepository(long repositoryId, ApiOptions options)
        {
            Ensure.ArgumentNotNull(options, nameof(options));

            var endpoint = ApiUrls.Assignees(repositoryId);

            return(ApiConnection.GetAll <User>(endpoint, null, AcceptHeaders.StableVersion, options));
        }
Esempio n. 3
0
        public Task <IReadOnlyList <User> > GetAllForRepository(string owner, string name, ApiOptions options)
        {
            Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
            Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
            Ensure.ArgumentNotNull(options, nameof(options));

            var endpoint = ApiUrls.Assignees(owner, name);

            return(ApiConnection.GetAll <User>(endpoint, null, AcceptHeaders.StableVersion, options));
        }