diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-03 21:35:41 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-03 21:35:41 -0500 |
| commit | 135168b0e0640211aee5cda9285cffb184385e83 (patch) | |
| tree | ccbdd9a8a5299aa557b888919b1884e5705ed05e /MediaBrowser.Controller/Session | |
| parent | 6da42312441dcdad2fbbd831a219398371340b43 (diff) | |
support adding additional users to sessions
Diffstat (limited to 'MediaBrowser.Controller/Session')
| -rw-r--r-- | MediaBrowser.Controller/Session/ISessionManager.cs | 14 | ||||
| -rw-r--r-- | MediaBrowser.Controller/Session/SessionInfo.cs | 15 |
2 files changed, 27 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/Session/ISessionManager.cs b/MediaBrowser.Controller/Session/ISessionManager.cs index e0163a3e1..08797eecd 100644 --- a/MediaBrowser.Controller/Session/ISessionManager.cs +++ b/MediaBrowser.Controller/Session/ISessionManager.cs @@ -141,5 +141,19 @@ namespace MediaBrowser.Controller.Session /// <param name="cancellationToken">The cancellation token.</param> /// <returns>Task.</returns> Task SendServerRestartNotification(CancellationToken cancellationToken); + + /// <summary> + /// Adds the additional user. + /// </summary> + /// <param name="sessionId">The session identifier.</param> + /// <param name="userId">The user identifier.</param> + void AddAdditionalUser(Guid sessionId, Guid userId); + + /// <summary> + /// Removes the additional user. + /// </summary> + /// <param name="sessionId">The session identifier.</param> + /// <param name="userId">The user identifier.</param> + void RemoveAdditionalUser(Guid sessionId, Guid userId); } }
\ No newline at end of file diff --git a/MediaBrowser.Controller/Session/SessionInfo.cs b/MediaBrowser.Controller/Session/SessionInfo.cs index 82e9328ac..ce07f5dc4 100644 --- a/MediaBrowser.Controller/Session/SessionInfo.cs +++ b/MediaBrowser.Controller/Session/SessionInfo.cs @@ -1,4 +1,5 @@ using MediaBrowser.Controller.Entities; +using MediaBrowser.Model.Session; using System; using System.Collections.Generic; @@ -12,8 +13,12 @@ namespace MediaBrowser.Controller.Session public SessionInfo() { QueueableMediaTypes = new List<string>(); + + AdditionalUsersPresent = new List<SessionUserInfo>(); } + public List<SessionUserInfo> AdditionalUsersPresent { get; set; } + /// <summary> /// Gets or sets the remote end point. /// </summary> @@ -31,7 +36,7 @@ namespace MediaBrowser.Controller.Session /// </summary> /// <value>The queueable media types.</value> public List<string> QueueableMediaTypes { get; set; } - + /// <summary> /// Gets or sets the id. /// </summary> @@ -42,7 +47,13 @@ namespace MediaBrowser.Controller.Session /// Gets or sets the user id. /// </summary> /// <value>The user id.</value> - public User User { get; set; } + public Guid? UserId { get; set; } + + /// <summary> + /// Gets or sets the username. + /// </summary> + /// <value>The username.</value> + public string UserName { get; set; } /// <summary> /// Gets or sets the type of the client. |
