diff options
| author | Eric Reed <ebr@mediabrowser3.com> | 2013-02-26 17:13:58 -0500 |
|---|---|---|
| committer | Eric Reed <ebr@mediabrowser3.com> | 2013-02-26 17:14:08 -0500 |
| commit | 1925288a860ccc3fcd7364432ac5057eccf044e0 (patch) | |
| tree | fecc71d1e3851a0e5db06ed2de568f6f168318a5 /MediaBrowser.Common/Security | |
| parent | a6596042a67e2d846f74542d72e81b87d1521a5d (diff) | |
Extract ISecurityManager interface
Diffstat (limited to 'MediaBrowser.Common/Security')
| -rw-r--r-- | MediaBrowser.Common/Security/ISecurityManager.cs | 34 |
1 files changed, 34 insertions, 0 deletions
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 + { + /// <summary> + /// Gets a value indicating whether this instance is MB supporter. + /// </summary> + /// <value><c>true</c> if this instance is MB supporter; otherwise, <c>false</c>.</value> + bool IsMBSupporter { get; } + + /// <summary> + /// Gets or sets the supporter key. + /// </summary> + /// <value>The supporter key.</value> + string SupporterKey { get; set; } + + /// <summary> + /// Gets or sets the legacy key. + /// </summary> + /// <value>The legacy key.</value> + string LegacyKey { get; set; } + + /// <summary> + /// Gets the registration status. + /// </summary> + /// <param name="feature">The feature.</param> + /// <param name="mb2Equivalent">The MB2 equivalent.</param> + /// <returns>Task{MBRegistrationRecord}.</returns> + Task<MBRegistrationRecord> GetRegistrationStatus(string feature, string mb2Equivalent = null); + } +}
\ No newline at end of file |
