2021-05-07 00:39:20 +02:00
|
|
|
#nullable disable
|
|
|
|
|
2020-08-22 21:56:24 +02:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-01-06 21:50:43 +01:00
|
|
|
using MediaBrowser.Model.Devices;
|
2018-12-28 00:27:57 +01:00
|
|
|
using MediaBrowser.Model.Querying;
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Security
|
|
|
|
{
|
|
|
|
public interface IAuthenticationRepository
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Creates the specified information.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="info">The information.</param>
|
|
|
|
/// <returns>Task.</returns>
|
|
|
|
void Create(AuthenticationInfo info);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Updates the specified information.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="info">The information.</param>
|
|
|
|
/// <returns>Task.</returns>
|
|
|
|
void Update(AuthenticationInfo info);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the specified query.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="query">The query.</param>
|
|
|
|
/// <returns>QueryResult{AuthenticationInfo}.</returns>
|
|
|
|
QueryResult<AuthenticationInfo> Get(AuthenticationInfoQuery query);
|
|
|
|
|
|
|
|
void Delete(AuthenticationInfo info);
|
|
|
|
|
|
|
|
DeviceOptions GetDeviceOptions(string deviceId);
|
2020-08-22 21:56:24 +02:00
|
|
|
|
2018-12-28 00:27:57 +01:00
|
|
|
void UpdateDeviceOptions(string deviceId, DeviceOptions options);
|
|
|
|
}
|
|
|
|
}
|