From 135168b0e0640211aee5cda9285cffb184385e83 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 3 Jan 2014 21:35:41 -0500 Subject: support adding additional users to sessions --- MediaBrowser.Controller/Session/ISessionManager.cs | 14 ++++++++++++++ MediaBrowser.Controller/Session/SessionInfo.cs | 15 +++++++++++++-- 2 files changed, 27 insertions(+), 2 deletions(-) (limited to 'MediaBrowser.Controller/Session') 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 /// The cancellation token. /// Task. Task SendServerRestartNotification(CancellationToken cancellationToken); + + /// + /// Adds the additional user. + /// + /// The session identifier. + /// The user identifier. + void AddAdditionalUser(Guid sessionId, Guid userId); + + /// + /// Removes the additional user. + /// + /// The session identifier. + /// The user identifier. + 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(); + + AdditionalUsersPresent = new List(); } + public List AdditionalUsersPresent { get; set; } + /// /// Gets or sets the remote end point. /// @@ -31,7 +36,7 @@ namespace MediaBrowser.Controller.Session /// /// The queueable media types. public List QueueableMediaTypes { get; set; } - + /// /// Gets or sets the id. /// @@ -42,7 +47,13 @@ namespace MediaBrowser.Controller.Session /// Gets or sets the user id. /// /// The user id. - public User User { get; set; } + public Guid? UserId { get; set; } + + /// + /// Gets or sets the username. + /// + /// The username. + public string UserName { get; set; } /// /// Gets or sets the type of the client. -- cgit v1.2.3