mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-26 07:56:26 +00:00
31 lines
604 B
C#
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; }
|
||
|
}
|
||
|
}
|