ec1f5dc317
Add Argument*Exceptions now use proper nameof operators. Added exception messages to quite a few Argument*Exceptions. Fixed rethorwing to be proper syntax. Added a ton of null checkes. (This is only a start, there are about 500 places that need proper null handling) Added some TODOs to log certain exceptions. Fix sln again. Fixed all AssemblyInfo's and added proper copyright (where I could find them) We live in *current year*. Fixed the use of braces. Fixed a ton of properties, and made a fair amount of functions static that should be and can be static. Made more Methods that should be static static. You can now use static to find bad functions! Removed unused variable. And added one more proper XML comment.
36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
using MediaBrowser.Model.Devices;
|
|
using MediaBrowser.Model.Querying;
|
|
using System.Threading;
|
|
|
|
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);
|
|
void UpdateDeviceOptions(string deviceId, DeviceOptions options);
|
|
}
|
|
}
|