diff options
| author | Cody Robibero <cody@robibe.ro> | 2024-09-19 09:04:01 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-19 09:04:01 -0600 |
| commit | b8ccf7fa709ee4044f8853c982f11be8695caf85 (patch) | |
| tree | d41bc05adc7a061574ddcde06f4702a86bf01e96 /MediaBrowser.Controller/Session/ISessionManager.cs | |
| parent | 93db8990d951649c1d25003e2859776ac80e7440 (diff) | |
| parent | d4bde14a0143ae60db5187084dbb8cbf93e77cfd (diff) | |
Merge pull request #12587 from Shadowghost/session-info-dto
Diffstat (limited to 'MediaBrowser.Controller/Session/ISessionManager.cs')
| -rw-r--r-- | MediaBrowser.Controller/Session/ISessionManager.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Session/ISessionManager.cs b/MediaBrowser.Controller/Session/ISessionManager.cs index 5a47236f92..f2e98dd787 100644 --- a/MediaBrowser.Controller/Session/ISessionManager.cs +++ b/MediaBrowser.Controller/Session/ISessionManager.cs @@ -9,6 +9,7 @@ using System.Threading.Tasks; using Jellyfin.Data.Entities.Security; using MediaBrowser.Controller.Authentication; using MediaBrowser.Controller.Library; +using MediaBrowser.Model.Dto; using MediaBrowser.Model.Session; using MediaBrowser.Model.SyncPlay; @@ -293,6 +294,16 @@ namespace MediaBrowser.Controller.Session SessionInfo GetSession(string deviceId, string client, string version); /// <summary> + /// Gets all sessions available to a user. + /// </summary> + /// <param name="userId">The session identifier.</param> + /// <param name="deviceId">The device id.</param> + /// <param name="activeWithinSeconds">Active within session limit.</param> + /// <param name="controllableUserToCheck">Filter for sessions remote controllable for this user.</param> + /// <returns>IReadOnlyList{SessionInfoDto}.</returns> + IReadOnlyList<SessionInfoDto> GetSessions(Guid userId, string deviceId, int? activeWithinSeconds, Guid? controllableUserToCheck); + + /// <summary> /// Gets the session by authentication token. /// </summary> /// <param name="token">The token.</param> |
