From bb5e6fdcad9e92b58b754075b8df2387590aeaaf Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 25 Dec 2013 09:39:46 -0500 Subject: hook up roku session controller + web client layout fixes --- .../Session/ISessionControllerFactory.cs | 16 ++++++++++++++++ MediaBrowser.Controller/Session/ISessionManager.cs | 9 ++++++++- MediaBrowser.Controller/Session/SessionInfo.cs | 6 ++++++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 MediaBrowser.Controller/Session/ISessionControllerFactory.cs (limited to 'MediaBrowser.Controller/Session') diff --git a/MediaBrowser.Controller/Session/ISessionControllerFactory.cs b/MediaBrowser.Controller/Session/ISessionControllerFactory.cs new file mode 100644 index 0000000000..92862e4625 --- /dev/null +++ b/MediaBrowser.Controller/Session/ISessionControllerFactory.cs @@ -0,0 +1,16 @@ + +namespace MediaBrowser.Controller.Session +{ + /// + /// Interface ISesssionControllerFactory + /// + public interface ISessionControllerFactory + { + /// + /// Gets the session controller. + /// + /// The session. + /// ISessionController. + ISessionController GetSessionController(SessionInfo session); + } +} diff --git a/MediaBrowser.Controller/Session/ISessionManager.cs b/MediaBrowser.Controller/Session/ISessionManager.cs index 771d8f72e5..ec138bfb4d 100644 --- a/MediaBrowser.Controller/Session/ISessionManager.cs +++ b/MediaBrowser.Controller/Session/ISessionManager.cs @@ -34,6 +34,12 @@ namespace MediaBrowser.Controller.Session /// The sessions. IEnumerable Sessions { get; } + /// + /// Adds the parts. + /// + /// The session factories. + void AddParts(IEnumerable sessionFactories); + /// /// Logs the user activity. /// @@ -41,10 +47,11 @@ namespace MediaBrowser.Controller.Session /// The app version. /// The device id. /// Name of the device. + /// The remote end point. /// The user. /// Task. /// user - Task LogSessionActivity(string clientType, string appVersion, string deviceId, string deviceName, User user); + Task LogSessionActivity(string clientType, string appVersion, string deviceId, string deviceName, string remoteEndPoint, User user); /// /// Used to report that playback has started for an item diff --git a/MediaBrowser.Controller/Session/SessionInfo.cs b/MediaBrowser.Controller/Session/SessionInfo.cs index ed2fcda678..82e9328ac3 100644 --- a/MediaBrowser.Controller/Session/SessionInfo.cs +++ b/MediaBrowser.Controller/Session/SessionInfo.cs @@ -14,6 +14,12 @@ namespace MediaBrowser.Controller.Session QueueableMediaTypes = new List(); } + /// + /// Gets or sets the remote end point. + /// + /// The remote end point. + public string RemoteEndPoint { get; set; } + /// /// Gets or sets a value indicating whether this instance can seek. /// -- cgit v1.2.3