mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-15 10:43:30 +01:00
fixes #552 - Add parental control usage limits
This commit is contained in:
@@ -715,10 +715,10 @@ namespace MediaBrowser.Model.ApiClient
|
||||
/// Authenticates a user and returns the result
|
||||
/// </summary>
|
||||
/// <param name="username">The username.</param>
|
||||
/// <param name="sha1Hash">The sha1 hash.</param>
|
||||
/// <param name="password">The password.</param>
|
||||
/// <returns>Task.</returns>
|
||||
/// <exception cref="ArgumentNullException">userId</exception>
|
||||
Task<AuthenticationResult> AuthenticateUserAsync(string username, byte[] sha1Hash);
|
||||
Task<AuthenticationResult> AuthenticateUserAsync(string username, string password);
|
||||
|
||||
/// <summary>
|
||||
/// Updates the server configuration async.
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using MediaBrowser.Model.Dto;
|
||||
using MediaBrowser.Model.Connect;
|
||||
using MediaBrowser.Model.Dto;
|
||||
using MediaBrowser.Model.Events;
|
||||
using System;
|
||||
using System.Threading;
|
||||
@@ -65,5 +66,25 @@ namespace MediaBrowser.Model.ApiClient
|
||||
/// </summary>
|
||||
[Obsolete]
|
||||
IApiClient CurrentApiClient { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Creates the pin.
|
||||
/// </summary>
|
||||
/// <returns>Task<PinCreationResult>.</returns>
|
||||
Task<PinCreationResult> CreatePin();
|
||||
|
||||
/// <summary>
|
||||
/// Gets the pin status.
|
||||
/// </summary>
|
||||
/// <param name="pin">The pin.</param>
|
||||
/// <returns>Task<PinStatusResult>.</returns>
|
||||
Task<PinStatusResult> GetPinStatus(PinCreationResult pin);
|
||||
|
||||
/// <summary>
|
||||
/// Exchanges the pin.
|
||||
/// </summary>
|
||||
/// <param name="pin">The pin.</param>
|
||||
/// <returns>Task.</returns>
|
||||
Task ExchangePin(PinCreationResult pin);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user