UserTeams() public static method

Returns the Uri to discover teams for the current user
public static UserTeams ( ) : Uri
return Uri
        public Task <IReadOnlyList <Team> > GetAllForCurrent(ApiOptions options)
        {
            Ensure.ArgumentNotNull(options, nameof(options));

            var endpoint = ApiUrls.UserTeams();

            return(ApiConnection.GetAll <Team>(endpoint, options));
        }
示例#2
0
        /// <summary>
        /// Returns all <see cref="Team" />s for the current user.
        /// </summary>
        /// <param name="options">Options to change API behaviour.</param>
        /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
        /// <returns>A list of the user's <see cref="Team"/>s.</returns>
        public Task <IReadOnlyList <Team> > GetAllForCurrent(ApiOptions options)
        {
            Ensure.ArgumentNotNull(options, "options");

            var endpoint = ApiUrls.UserTeams();

            return(ApiConnection.GetAll <Team>(endpoint, null, AcceptHeaders.NestedTeamsPreview, options));
        }
示例#3
0
        /// <summary>
        /// Returns all <see cref="Team" />s for the current user.
        /// </summary>
        /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
        /// <returns>A list of the user's <see cref="Team"/>s.</returns>
        public Task <IReadOnlyList <Team> > GetAllForCurrent()
        {
            var endpoint = ApiUrls.UserTeams();

            return(ApiConnection.GetAll <Team>(endpoint));
        }