Cleanup interfaces

This commit is contained in:
Matt Montgomery 2020-07-27 15:40:14 -05:00
parent 3c91aa0c3d
commit 31d3b1b83a
2 changed files with 11 additions and 6 deletions

View File

@ -13,22 +13,22 @@ namespace MediaBrowser.Controller.QuickConnect
/// <summary> /// <summary>
/// Gets or sets the length of user facing codes. /// Gets or sets the length of user facing codes.
/// </summary> /// </summary>
public int CodeLength { get; set; } int CodeLength { get; set; }
/// <summary> /// <summary>
/// Gets or sets the string to prefix internal access tokens with. /// Gets or sets the string to prefix internal access tokens with.
/// </summary> /// </summary>
public string TokenNamePrefix { get; set; } string TokenNamePrefix { get; set; }
/// <summary> /// <summary>
/// Gets the current state of quick connect. /// Gets the current state of quick connect.
/// </summary> /// </summary>
public QuickConnectState State { get; } QuickConnectState State { get; }
/// <summary> /// <summary>
/// Gets or sets the time (in minutes) before quick connect will automatically deactivate. /// Gets or sets the time (in minutes) before quick connect will automatically deactivate.
/// </summary> /// </summary>
public int Timeout { get; set; } int Timeout { get; set; }
/// <summary> /// <summary>
/// Assert that quick connect is currently active and throws an exception if it is not. /// Assert that quick connect is currently active and throws an exception if it is not.
@ -72,7 +72,7 @@ namespace MediaBrowser.Controller.QuickConnect
/// Expire quick connect requests that are over the time limit. If <paramref name="expireAll"/> is true, all requests are unconditionally expired. /// Expire quick connect requests that are over the time limit. If <paramref name="expireAll"/> is true, all requests are unconditionally expired.
/// </summary> /// </summary>
/// <param name="expireAll">If true, all requests will be expired.</param> /// <param name="expireAll">If true, all requests will be expired.</param>
public void ExpireRequests(bool expireAll = false); void ExpireRequests(bool expireAll = false);
/// <summary> /// <summary>
/// Deletes all quick connect access tokens for the provided user. /// Deletes all quick connect access tokens for the provided user.

View File

@ -264,7 +264,12 @@ namespace MediaBrowser.Controller.Session
/// <returns>Task{SessionInfo}.</returns> /// <returns>Task{SessionInfo}.</returns>
Task<AuthenticationResult> AuthenticateNewSession(AuthenticationRequest request); Task<AuthenticationResult> AuthenticateNewSession(AuthenticationRequest request);
public Task<AuthenticationResult> AuthenticateQuickConnect(AuthenticationRequest request, string token); /// <summary>
/// Authenticates a new session with quick connect.
/// </summary>
/// <param name="request">The request.</param>
/// <returns>Task{SessionInfo}.</returns>
Task<AuthenticationResult> AuthenticateQuickConnect(AuthenticationRequest request, string token);
/// <summary> /// <summary>
/// Creates the new session. /// Creates the new session.