Spotify.NET/SpotifyAPI.Web/Models/Response/Interfaces/IToken.cs
Tim Ittermann a9c4aba7fa
Add interfaces for tokens (#499)
* Add interfaces for tokens

* Delete UpgradeLog.htm

* Changed Namespace

Co-authored-by: Jonas Dellinger <jonas@dellinger.dev>
2020-08-26 15:38:00 +02:00

31 lines
604 B
C#

using System;
namespace SpotifyAPI.Web
{
/// <summary>
/// A token to access the Spotify API
/// </summary>
public interface IToken
{
/// <summary>
/// Access token string
/// </summary>
public string AccessToken { get; set; }
/// <summary>
/// Type of this token (eg. Bearer)
/// </summary>
public string TokenType { get; set; }
/// <summary>
/// Auto-Initalized to UTC Now
/// </summary>
public DateTime CreatedAt { get; set; }
/// <summary>
/// Is the token still valid?
/// </summary>
public bool IsExpired { get; }
}
}