diff options
| author | Matt Montgomery <33811686+ConfusedPolarBear@users.noreply.github.com> | 2020-07-27 15:40:14 -0500 |
|---|---|---|
| committer | Matt Montgomery <33811686+ConfusedPolarBear@users.noreply.github.com> | 2020-07-27 15:40:14 -0500 |
| commit | 31d3b1b83aa356221e8af2f316b58584579207fe (patch) | |
| tree | 8463f0e1639443a682742d9108fadf945eaec24c | |
| parent | 3c91aa0c3d4af3c3d11b4c732ea14c7e641ba662 (diff) | |
Cleanup interfaces
| -rw-r--r-- | MediaBrowser.Controller/QuickConnect/IQuickConnect.cs | 10 | ||||
| -rw-r--r-- | MediaBrowser.Controller/Session/ISessionManager.cs | 7 |
2 files changed, 11 insertions, 6 deletions
diff --git a/MediaBrowser.Controller/QuickConnect/IQuickConnect.cs b/MediaBrowser.Controller/QuickConnect/IQuickConnect.cs index 5518e0385..993637c8a 100644 --- a/MediaBrowser.Controller/QuickConnect/IQuickConnect.cs +++ b/MediaBrowser.Controller/QuickConnect/IQuickConnect.cs @@ -13,22 +13,22 @@ namespace MediaBrowser.Controller.QuickConnect /// <summary> /// Gets or sets the length of user facing codes. /// </summary> - public int CodeLength { get; set; } + int CodeLength { get; set; } /// <summary> /// Gets or sets the string to prefix internal access tokens with. /// </summary> - public string TokenNamePrefix { get; set; } + string TokenNamePrefix { get; set; } /// <summary> /// Gets the current state of quick connect. /// </summary> - public QuickConnectState State { get; } + QuickConnectState State { get; } /// <summary> /// Gets or sets the time (in minutes) before quick connect will automatically deactivate. /// </summary> - public int Timeout { get; set; } + int Timeout { get; set; } /// <summary> /// 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. /// </summary> /// <param name="expireAll">If true, all requests will be expired.</param> - public void ExpireRequests(bool expireAll = false); + void ExpireRequests(bool expireAll = false); /// <summary> /// Deletes all quick connect access tokens for the provided user. diff --git a/MediaBrowser.Controller/Session/ISessionManager.cs b/MediaBrowser.Controller/Session/ISessionManager.cs index 23230e41e..ffa19fb69 100644 --- a/MediaBrowser.Controller/Session/ISessionManager.cs +++ b/MediaBrowser.Controller/Session/ISessionManager.cs @@ -264,7 +264,12 @@ namespace MediaBrowser.Controller.Session /// <returns>Task{SessionInfo}.</returns> 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> /// Creates the new session. |
