From 1925288a860ccc3fcd7364432ac5057eccf044e0 Mon Sep 17 00:00:00 2001 From: Eric Reed Date: Tue, 26 Feb 2013 17:13:58 -0500 Subject: Extract ISecurityManager interface --- MediaBrowser.Common/Security/ISecurityManager.cs | 34 ++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 MediaBrowser.Common/Security/ISecurityManager.cs (limited to 'MediaBrowser.Common/Security') diff --git a/MediaBrowser.Common/Security/ISecurityManager.cs b/MediaBrowser.Common/Security/ISecurityManager.cs new file mode 100644 index 0000000000..bcda3c6b41 --- /dev/null +++ b/MediaBrowser.Common/Security/ISecurityManager.cs @@ -0,0 +1,34 @@ +using System.Threading.Tasks; +using Mediabrowser.Model.Entities; + +namespace MediaBrowser.Common.Security +{ + public interface ISecurityManager + { + /// + /// Gets a value indicating whether this instance is MB supporter. + /// + /// true if this instance is MB supporter; otherwise, false. + bool IsMBSupporter { get; } + + /// + /// Gets or sets the supporter key. + /// + /// The supporter key. + string SupporterKey { get; set; } + + /// + /// Gets or sets the legacy key. + /// + /// The legacy key. + string LegacyKey { get; set; } + + /// + /// Gets the registration status. + /// + /// The feature. + /// The MB2 equivalent. + /// Task{MBRegistrationRecord}. + Task GetRegistrationStatus(string feature, string mb2Equivalent = null); + } +} \ No newline at end of file -- cgit v1.2.3