License.cs 860 B

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