jellyfin-server/MediaBrowser.Common/Security/ISecurityManager.cs

49 lines
1.8 KiB
C#
Raw Normal View History

2013-02-26 22:13:58 +00:00
using System.Threading.Tasks;
2013-06-10 16:57:30 +00:00
using MediaBrowser.Model.Entities;
2013-02-26 22:13:58 +00:00
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. Overload to support existing plug-ins.
2013-02-26 22:13:58 +00:00
/// </summary>
/// <param name="feature">The feature.</param>
/// <param name="mb2Equivalent">The MB2 equivalent.</param>
/// <param name="version">The version of the feature</param>
2013-02-26 22:13:58 +00:00
/// <returns>Task{MBRegistrationRecord}.</returns>
Task<MBRegistrationRecord> GetRegistrationStatus(string feature, string mb2Equivalent = null);
/// <summary>
/// Gets the registration status.
/// </summary>
/// <param name="feature">The feature.</param>
/// <param name="mb2Equivalent">The MB2 equivalent.</param>
/// <param name="version">The version of the feature</param>
/// <returns>Task{MBRegistrationRecord}.</returns>
Task<MBRegistrationRecord> GetRegistrationStatus(string feature, string mb2Equivalent, string version);
/// <summary>
/// Load all registration info for all entities that require registration
/// </summary>
/// <returns></returns>
Task LoadAllRegistrationInfo();
2013-02-26 22:13:58 +00:00
}
}