ISecurityManager.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. using MediaBrowser.Model.Entities;
  2. using System.Threading.Tasks;
  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. Task<bool> IsSupporter();
  12. /// <summary>
  13. /// Gets or sets the supporter key.
  14. /// </summary>
  15. /// <value>The supporter key.</value>
  16. string SupporterKey { get; }
  17. /// <summary>
  18. /// Gets the registration status. Overload to support existing plug-ins.
  19. /// </summary>
  20. Task<MBRegistrationRecord> GetRegistrationStatus(string feature);
  21. /// <summary>
  22. /// Register and app store sale with our back-end
  23. /// </summary>
  24. /// <param name="parameters">Json parameters to pass to admin server</param>
  25. Task RegisterAppStoreSale(string parameters);
  26. Task UpdateSupporterKey(string newValue);
  27. }
  28. }