From 2ce9e05d2fc818b031f2ab12bc50ffae035033ed Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 15 Apr 2014 22:17:48 -0400 Subject: add new playback checkin endpoints --- MediaBrowser.Controller/Session/ISessionManager.cs | 37 ++++++++++++++++------ 1 file changed, 27 insertions(+), 10 deletions(-) (limited to 'MediaBrowser.Controller/Session/ISessionManager.cs') diff --git a/MediaBrowser.Controller/Session/ISessionManager.cs b/MediaBrowser.Controller/Session/ISessionManager.cs index f2edca082c..54f371631b 100644 --- a/MediaBrowser.Controller/Session/ISessionManager.cs +++ b/MediaBrowser.Controller/Session/ISessionManager.cs @@ -1,5 +1,6 @@ using MediaBrowser.Controller.Entities; using MediaBrowser.Controller.Library; +using MediaBrowser.Model.Entities; using MediaBrowser.Model.Session; using System; using System.Collections.Generic; @@ -68,7 +69,7 @@ namespace MediaBrowser.Controller.Session /// /// The info. /// Task. - Task OnPlaybackStart(PlaybackInfo info); + Task OnPlaybackStart(PlaybackStartInfo info); /// /// Used to report playback progress for an item @@ -91,7 +92,7 @@ namespace MediaBrowser.Controller.Session /// /// The session identifier. /// Task. - Task ReportSessionEnded(Guid sessionId); + Task ReportSessionEnded(string sessionId); /// /// Gets the session info dto. @@ -108,7 +109,7 @@ namespace MediaBrowser.Controller.Session /// The command. /// The cancellation token. /// Task. - Task SendGeneralCommand(Guid controllingSessionId, Guid sessionId, GeneralCommand command, CancellationToken cancellationToken); + Task SendGeneralCommand(string controllingSessionId, string sessionId, GeneralCommand command, CancellationToken cancellationToken); /// /// Sends the message command. @@ -118,7 +119,7 @@ namespace MediaBrowser.Controller.Session /// The command. /// The cancellation token. /// Task. - Task SendMessageCommand(Guid controllingSessionId, Guid sessionId, MessageCommand command, CancellationToken cancellationToken); + Task SendMessageCommand(string controllingSessionId, string sessionId, MessageCommand command, CancellationToken cancellationToken); /// /// Sends the play command. @@ -128,7 +129,7 @@ namespace MediaBrowser.Controller.Session /// The command. /// The cancellation token. /// Task. - Task SendPlayCommand(Guid controllingSessionId, Guid sessionId, PlayRequest command, CancellationToken cancellationToken); + Task SendPlayCommand(string controllingSessionId, string sessionId, PlayRequest command, CancellationToken cancellationToken); /// /// Sends the browse command. @@ -138,7 +139,7 @@ namespace MediaBrowser.Controller.Session /// The command. /// The cancellation token. /// Task. - Task SendBrowseCommand(Guid controllingSessionId, Guid sessionId, BrowseRequest command, CancellationToken cancellationToken); + Task SendBrowseCommand(string controllingSessionId, string sessionId, BrowseRequest command, CancellationToken cancellationToken); /// /// Sends the playstate command. @@ -148,7 +149,7 @@ namespace MediaBrowser.Controller.Session /// The command. /// The cancellation token. /// Task. - Task SendPlaystateCommand(Guid controllingSessionId, Guid sessionId, PlaystateRequest command, CancellationToken cancellationToken); + Task SendPlaystateCommand(string controllingSessionId, string sessionId, PlaystateRequest command, CancellationToken cancellationToken); /// /// Sends the restart required message. @@ -176,15 +177,31 @@ namespace MediaBrowser.Controller.Session /// /// The session identifier. /// The user identifier. - void AddAdditionalUser(Guid sessionId, Guid userId); + void AddAdditionalUser(string sessionId, Guid userId); /// /// Removes the additional user. /// /// The session identifier. /// The user identifier. - void RemoveAdditionalUser(Guid sessionId, Guid userId); + void RemoveAdditionalUser(string sessionId, Guid userId); + /// + /// Reports the now viewing item. + /// + /// The session identifier. + /// The item identifier. + /// The context. + void ReportNowViewingItem(string sessionId, string itemId, string context); + + /// + /// Reports the now viewing item. + /// + /// The session identifier. + /// The item. + /// The context. + void ReportNowViewingItem(string sessionId, BaseItemInfo item, string context); + /// /// Authenticates the new session. /// @@ -203,6 +220,6 @@ namespace MediaBrowser.Controller.Session /// /// The session identifier. /// The capabilities. - void ReportCapabilities(Guid sessionId, SessionCapabilities capabilities); + void ReportCapabilities(string sessionId, SessionCapabilities capabilities); } } \ No newline at end of file -- cgit v1.2.3