ironlicensing-dotnet/Models/LicenseInfo.cs

24 lines
569 B
C#

namespace IronLicensing.Client.Models;
public class LicenseInfo
{
public string LicenseKey { get; set; } = string.Empty;
public string Tier { get; set; } = string.Empty;
public LicenseStatus Status { get; set; }
public DateTime? ExpiresAt { get; set; }
public List<string> Features { get; set; } = [];
public int ActivationsUsed { get; set; }
public int ActivationsMax { get; set; }
public DateTime LastValidated { get; set; }
}
public enum LicenseStatus
{
Unknown,
Trial,
Active,
Expired,
Suspended,
Revoked
}