mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-25 23:46:27 +00:00
a9c4aba7fa
* Add interfaces for tokens * Delete UpgradeLog.htm * Changed Namespace Co-authored-by: Jonas Dellinger <jonas@dellinger.dev>
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; }
|
|
}
|
|
}
|