Browse Source

added a token object to be read from Discord's token endpoint.

pull/1806/head
emorell96 4 years ago
parent
commit
ef9e66cbe5
1 changed files with 19 additions and 0 deletions
  1. +19
    -0
      src/Discord.Net.Rest/API/Common/Token.cs

+ 19
- 0
src/Discord.Net.Rest/API/Common/Token.cs View File

@@ -0,0 +1,19 @@
#pragma warning disable CS1591
using Newtonsoft.Json;

namespace Discord.API.Rest
{
internal class Token
{
[JsonProperty("access_token")]
public string AccessToken { get; set; }
[JsonProperty("token_type")]
public string TokenType { get; set; }
[JsonProperty("expires_in")]
public int ExpiresIn { get; set; }
[JsonProperty("refresh_token")]
public string RefreshToken { get; set; }
[JsonProperty("scope")]
public string Scope { get; set; }
}
}

Loading…
Cancel
Save