Foxnouns.NET/Foxnouns.Backend/Database/Models/FediverseApplication.cs

22 lines
564 B
C#
Raw Normal View History

using NodaTime;
2024-05-27 15:53:54 +02:00
namespace Foxnouns.Backend.Database.Models;
public class FediverseApplication : BaseModel
{
public required string Domain { get; init; }
public required string ClientId { get; set; }
public required string ClientSecret { get; set; }
public required FediverseInstanceType InstanceType { get; set; }
// These are for ensuring the application is still valid.
public string? AccessToken { get; set; }
public Instant? TokenValidUntil { get; set; }
2024-05-27 15:53:54 +02:00
}
public enum FediverseInstanceType
{
MastodonApi,
MisskeyApi,
}