mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-08 23:00:51 +02:00
Extract ISecurityManager interface
This commit is contained in:
parent
a6596042a6
commit
1925288a86
|
@ -136,6 +136,7 @@
|
||||||
<Compile Include="ScheduledTasks\DailyTrigger.cs" />
|
<Compile Include="ScheduledTasks\DailyTrigger.cs" />
|
||||||
<Compile Include="ScheduledTasks\IntervalTrigger.cs" />
|
<Compile Include="ScheduledTasks\IntervalTrigger.cs" />
|
||||||
<Compile Include="ScheduledTasks\WeeklyTrigger.cs" />
|
<Compile Include="ScheduledTasks\WeeklyTrigger.cs" />
|
||||||
|
<Compile Include="Security\ISecurityManager.cs" />
|
||||||
<Compile Include="Updates\IInstallationManager.cs" />
|
<Compile Include="Updates\IInstallationManager.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
34
MediaBrowser.Common/Security/ISecurityManager.cs
Normal file
34
MediaBrowser.Common/Security/ISecurityManager.cs
Normal file
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,4 +1,5 @@
|
||||||
using MediaBrowser.Model.Serialization;
|
using MediaBrowser.Common.Security;
|
||||||
|
using MediaBrowser.Model.Serialization;
|
||||||
using Mediabrowser.Model.Entities;
|
using Mediabrowser.Model.Entities;
|
||||||
using Mediabrowser.PluginSecurity;
|
using Mediabrowser.PluginSecurity;
|
||||||
using MediaBrowser.Common.Kernel;
|
using MediaBrowser.Common.Kernel;
|
||||||
|
@ -12,7 +13,7 @@ namespace MediaBrowser.Controller.Plugins
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Class PluginSecurityManager
|
/// Class PluginSecurityManager
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class PluginSecurityManager
|
public class PluginSecurityManager : ISecurityManager
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The _is MB supporter
|
/// The _is MB supporter
|
||||||
|
|
Loading…
Reference in a new issue