1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- using System;
- using MediaBrowser.Model.Entities;
- using System.Threading.Tasks;
- 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 the registration status. Overload to support existing plug-ins.
- /// </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);
- /// <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();
- /// <summary>
- /// Gets the supporter information.
- /// </summary>
- /// <returns>Task<SupporterInfo>.</returns>
- Task<SupporterInfo> GetSupporterInfo();
- /// <summary>
- /// Register and app store sale with our back-end
- /// </summary>
- /// <param name="store"></param>
- /// <param name="application"></param>
- /// <param name="product"></param>
- /// <param name="feature"></param>
- /// <param name="type"></param>
- /// <param name="storeId"></param>
- /// <param name="storeToken"></param>
- /// <param name="email"></param>
- /// <param name="amt"></param>
- Task RegisterAppStoreSale(string store, string application, string product, string feature,
- string type, string storeId, string storeToken, string email, string amt);
- }
- }
|