License.cs 1006 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. namespace InABox.Core
  3. {
  4. public class LicenseRequest
  5. {
  6. public Guid CustomerID { get; set; }
  7. public String[] Addresses { get; set; } = Array.Empty<String>();
  8. public bool IsDynamic { get; set; }
  9. }
  10. public class LicenseData : BaseObject
  11. {
  12. public DateTime LastRenewal { get; set; }
  13. /// <summary>
  14. /// The date when this license can next be renewed.
  15. /// </summary>
  16. public DateTime RenewalAvailable { get; set; }
  17. public DateTime Expiry { get; set; }
  18. public Guid CustomerID { get; set; }
  19. public Guid[] UserTrackingItems { get; set; } = Array.Empty<Guid>();
  20. public String[] Addresses { get; set; } = Array.Empty<String>();
  21. public bool IsDynamic { get; set; }
  22. }
  23. public class License : Entity, IPersistent, IRemotable, ILicense<CoreLicense>
  24. {
  25. [NullEditor]
  26. public string Data { get; set; } = "";
  27. }
  28. }