public Task <IReadOnlyList <Team> > GetAllForCurrent(ApiOptions options) { Ensure.ArgumentNotNull(options, nameof(options)); var endpoint = ApiUrls.UserTeams(); return(ApiConnection.GetAll <Team>(endpoint, options)); }
/// <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)); }
/// <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)); }