2024-07-06 23:42:33 -04:00
|
|
|
public class TwitchBotAuth
|
|
|
|
{
|
2024-06-16 20:19:31 -04:00
|
|
|
public string? UserId { get; set; }
|
|
|
|
public string? AccessToken { get; set; }
|
|
|
|
public string? RefreshToken { get; set; }
|
|
|
|
public string? BroadcasterId { get; set; }
|
2024-07-06 23:42:33 -04:00
|
|
|
public long? ExpiresIn
|
|
|
|
{
|
|
|
|
get => _expiresIn;
|
|
|
|
set
|
|
|
|
{
|
|
|
|
_expiresIn = value;
|
|
|
|
if (value != null)
|
|
|
|
ExpiresAt = DateTime.UtcNow + TimeSpan.FromSeconds((double) value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public DateTime ExpiresAt { get; set; }
|
|
|
|
public DateTime UpdatedAt { get; set; }
|
|
|
|
|
|
|
|
private long? _expiresIn;
|
2024-03-12 14:05:27 -04:00
|
|
|
}
|