From 33a3e215d03d2e8dad3e653e7c75258dc7eb4989 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 2 Oct 2013 15:08:58 -0400 Subject: added user data save event --- .../Session/ISessionController.cs | 61 ++++++++++++++++++++++ MediaBrowser.Controller/Session/ISessionManager.cs | 4 +- .../Session/ISessionRemoteController.cs | 61 ---------------------- MediaBrowser.Controller/Session/SessionInfo.cs | 6 +-- 4 files changed, 66 insertions(+), 66 deletions(-) create mode 100644 MediaBrowser.Controller/Session/ISessionController.cs delete mode 100644 MediaBrowser.Controller/Session/ISessionRemoteController.cs (limited to 'MediaBrowser.Controller/Session') diff --git a/MediaBrowser.Controller/Session/ISessionController.cs b/MediaBrowser.Controller/Session/ISessionController.cs new file mode 100644 index 000000000..f37d63b72 --- /dev/null +++ b/MediaBrowser.Controller/Session/ISessionController.cs @@ -0,0 +1,61 @@ +using MediaBrowser.Model.Session; +using System.Threading; +using System.Threading.Tasks; + +namespace MediaBrowser.Controller.Session +{ + public interface ISessionController + { + /// + /// Supportses the specified session. + /// + /// The session. + /// true if XXXX, false otherwise + bool Supports(SessionInfo session); + + /// + /// Sends the system command. + /// + /// The session. + /// The command. + /// The cancellation token. + /// Task. + Task SendSystemCommand(SessionInfo session, SystemCommand command, CancellationToken cancellationToken); + + /// + /// Sends the message command. + /// + /// The session. + /// The command. + /// The cancellation token. + /// Task. + Task SendMessageCommand(SessionInfo session, MessageCommand command, CancellationToken cancellationToken); + + /// + /// Sends the play command. + /// + /// The session. + /// The command. + /// The cancellation token. + /// Task. + Task SendPlayCommand(SessionInfo session, PlayRequest command, CancellationToken cancellationToken); + + /// + /// Sends the browse command. + /// + /// The session. + /// The command. + /// The cancellation token. + /// Task. + Task SendBrowseCommand(SessionInfo session, BrowseRequest command, CancellationToken cancellationToken); + + /// + /// Sends the playstate command. + /// + /// The session. + /// The command. + /// The cancellation token. + /// Task. + Task SendPlaystateCommand(SessionInfo session, PlaystateRequest command, CancellationToken cancellationToken); + } +} diff --git a/MediaBrowser.Controller/Session/ISessionManager.cs b/MediaBrowser.Controller/Session/ISessionManager.cs index 138aa1fc3..6ee57eb46 100644 --- a/MediaBrowser.Controller/Session/ISessionManager.cs +++ b/MediaBrowser.Controller/Session/ISessionManager.cs @@ -17,7 +17,7 @@ namespace MediaBrowser.Controller.Session /// Adds the parts. /// /// The remote controllers. - void AddParts(IEnumerable remoteControllers); + void AddParts(IEnumerable remoteControllers); /// /// Occurs when [playback start]. @@ -50,7 +50,7 @@ namespace MediaBrowser.Controller.Session /// The user. /// Task. /// user - Task LogConnectionActivity(string clientType, string appVersion, string deviceId, string deviceName, User user); + Task LogSessionActivity(string clientType, string appVersion, string deviceId, string deviceName, User user); /// /// Used to report that playback has started for an item diff --git a/MediaBrowser.Controller/Session/ISessionRemoteController.cs b/MediaBrowser.Controller/Session/ISessionRemoteController.cs deleted file mode 100644 index 9ba5c983d..000000000 --- a/MediaBrowser.Controller/Session/ISessionRemoteController.cs +++ /dev/null @@ -1,61 +0,0 @@ -using MediaBrowser.Model.Session; -using System.Threading; -using System.Threading.Tasks; - -namespace MediaBrowser.Controller.Session -{ - public interface ISessionRemoteController - { - /// - /// Supportses the specified session. - /// - /// The session. - /// true if XXXX, false otherwise - bool Supports(SessionInfo session); - - /// - /// Sends the system command. - /// - /// The session. - /// The command. - /// The cancellation token. - /// Task. - Task SendSystemCommand(SessionInfo session, SystemCommand command, CancellationToken cancellationToken); - - /// - /// Sends the message command. - /// - /// The session. - /// The command. - /// The cancellation token. - /// Task. - Task SendMessageCommand(SessionInfo session, MessageCommand command, CancellationToken cancellationToken); - - /// - /// Sends the play command. - /// - /// The session. - /// The command. - /// The cancellation token. - /// Task. - Task SendPlayCommand(SessionInfo session, PlayRequest command, CancellationToken cancellationToken); - - /// - /// Sends the browse command. - /// - /// The session. - /// The command. - /// The cancellation token. - /// Task. - Task SendBrowseCommand(SessionInfo session, BrowseRequest command, CancellationToken cancellationToken); - - /// - /// Sends the playstate command. - /// - /// The session. - /// The command. - /// The cancellation token. - /// Task. - Task SendPlaystateCommand(SessionInfo session, PlaystateRequest command, CancellationToken cancellationToken); - } -} diff --git a/MediaBrowser.Controller/Session/SessionInfo.cs b/MediaBrowser.Controller/Session/SessionInfo.cs index dc934b70a..d50f19c1f 100644 --- a/MediaBrowser.Controller/Session/SessionInfo.cs +++ b/MediaBrowser.Controller/Session/SessionInfo.cs @@ -1,9 +1,9 @@ -using System.Collections.Generic; -using System.Linq; -using MediaBrowser.Common.Net; +using MediaBrowser.Common.Net; using MediaBrowser.Controller.Entities; using MediaBrowser.Model.Net; using System; +using System.Collections.Generic; +using System.Linq; namespace MediaBrowser.Controller.Session { -- cgit v1.2.3