add metadata to each client action (#2124)

This commit is contained in:
Brendan Forster
2020-03-04 21:10:38 -04:00
committed by GitHub
parent a2b0d87ce8
commit f96885654f
79 changed files with 1178 additions and 78 deletions
+3
View File
@@ -55,6 +55,7 @@ namespace Octokit
/// Returns the user specified by the login.
/// </summary>
/// <param name="login">The login name for the user</param>
[ManualRoute("GET", "/users/{username}")]
public Task<User> Get(string login)
{
Ensure.ArgumentNotNullOrEmptyString(login, nameof(login));
@@ -67,6 +68,7 @@ namespace Octokit
/// </summary>
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception>
/// <returns>A <see cref="User"/></returns>
[ManualRoute("GET", "/user")]
public Task<User> Current()
{
return ApiConnection.Get<User>(_userEndpoint);
@@ -78,6 +80,7 @@ namespace Octokit
/// <param name="user">The login for the user</param>
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception>
/// <returns>A <see cref="User"/></returns>
[ManualRoute("PATCH", "/user")]
public Task<User> Update(UserUpdate user)
{
Ensure.ArgumentNotNull(user, nameof(user));