ISecurityManager.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System.Threading.Tasks;
  2. using MediaBrowser.Model.Entities;
  3. namespace MediaBrowser.Common.Security
  4. {
  5. public interface ISecurityManager
  6. {
  7. /// <summary>
  8. /// Gets a value indicating whether this instance is MB supporter.
  9. /// </summary>
  10. /// <value><c>true</c> if this instance is MB supporter; otherwise, <c>false</c>.</value>
  11. bool IsMBSupporter { get; }
  12. /// <summary>
  13. /// Gets or sets the supporter key.
  14. /// </summary>
  15. /// <value>The supporter key.</value>
  16. string SupporterKey { get; set; }
  17. /// <summary>
  18. /// Gets or sets the legacy key.
  19. /// </summary>
  20. /// <value>The legacy key.</value>
  21. string LegacyKey { get; set; }
  22. /// <summary>
  23. /// Gets the registration status.
  24. /// </summary>
  25. /// <param name="feature">The feature.</param>
  26. /// <param name="mb2Equivalent">The MB2 equivalent.</param>
  27. /// <param name="version">The version of the feature</param>
  28. /// <returns>Task{MBRegistrationRecord}.</returns>
  29. Task<MBRegistrationRecord> GetRegistrationStatus(string feature, string mb2Equivalent = null, string version = null);
  30. /// <summary>
  31. /// Load all registration info for all entities that require registration
  32. /// </summary>
  33. /// <returns></returns>
  34. Task LoadAllRegistrationInfo();
  35. }
  36. }