@ -37,181 +37,181 @@ namespace MediaBrowser.Controller.SyncPlay
/// <summary>
/// <summary>
/// Generic handler. Context's state can change.
/// Generic handler. Context's state can change.
/// </summary>
/// </summary>
/// <param name="request">The generic request.</param>
/// <param name="context">The context of the state.</param>
/// <param name="context">The context of the state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="request">The generic request.</param>
/// <param name="session">The session.</param>
/// <param name="session">The session.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <param name="cancellationToken">The cancellation token.</param>
void HandleRequest ( IGroup StateContext context , GroupStateType prevState , IGroupPlaybackRequest request , SessionInfo session , CancellationToken cancellationToken ) ;
void HandleRequest ( IGroup PlaybackRequest request , IGroup StateContext context , GroupStateType prevState , SessionInfo session , CancellationToken cancellationToken ) ;
/// <summary>
/// <summary>
/// Handles a play request from a session. Context's state can change.
/// Handles a play request from a session. Context's state can change.
/// </summary>
/// </summary>
/// <param name="request">The play request.</param>
/// <param name="context">The context of the state.</param>
/// <param name="context">The context of the state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="request">The play request.</param>
/// <param name="session">The session.</param>
/// <param name="session">The session.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <param name="cancellationToken">The cancellation token.</param>
void HandleRequest ( IGroupStateContext context , GroupStateType prevState , PlayGroupRequest request , SessionInfo session , CancellationToken cancellationToken ) ;
void HandleRequest ( PlayGroupRequest request , IGroupStateContext context , GroupStateType prevState , SessionInfo session , CancellationToken cancellationToken ) ;
/// <summary>
/// <summary>
/// Handles a set-playlist-item request from a session. Context's state can change.
/// Handles a set-playlist-item request from a session. Context's state can change.
/// </summary>
/// </summary>
/// <param name="request">The set-playlist-item request.</param>
/// <param name="context">The context of the state.</param>
/// <param name="context">The context of the state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="request">The set-playlist-item request.</param>
/// <param name="session">The session.</param>
/// <param name="session">The session.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <param name="cancellationToken">The cancellation token.</param>
void HandleRequest ( IGroupStateContext context , GroupStateType prevState , SetPlaylistItemGroupRequest request , SessionInfo session , CancellationToken cancellationToken ) ;
void HandleRequest ( SetPlaylistItemGroupRequest request , IGroupStateContext context , GroupStateType prevState , SessionInfo session , CancellationToken cancellationToken ) ;
/// <summary>
/// <summary>
/// Handles a remove-items request from a session. Context's state can change.
/// Handles a remove-items request from a session. Context's state can change.
/// </summary>
/// </summary>
/// <param name="request">The remove-items request.</param>
/// <param name="context">The context of the state.</param>
/// <param name="context">The context of the state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="request">The remove-items request.</param>
/// <param name="session">The session.</param>
/// <param name="session">The session.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <param name="cancellationToken">The cancellation token.</param>
void HandleRequest ( IGroupStateContext context , GroupStateType prevState , RemoveFromPlaylistGroupRequest request , SessionInfo session , CancellationToken cancellationToken ) ;
void HandleRequest ( RemoveFromPlaylistGroupRequest request , IGroupStateContext context , GroupStateType prevState , SessionInfo session , CancellationToken cancellationToken ) ;
/// <summary>
/// <summary>
/// Handles a move-playlist-item request from a session. Context's state should not change.
/// Handles a move-playlist-item request from a session. Context's state should not change.
/// </summary>
/// </summary>
/// <param name="request">The move-playlist-item request.</param>
/// <param name="context">The context of the state.</param>
/// <param name="context">The context of the state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="request">The move-playlist-item request.</param>
/// <param name="session">The session.</param>
/// <param name="session">The session.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <param name="cancellationToken">The cancellation token.</param>
void HandleRequest ( IGroupStateContext context , GroupStateType prevState , MovePlaylistItemGroupRequest request , SessionInfo session , CancellationToken cancellationToken ) ;
void HandleRequest ( MovePlaylistItemGroupRequest request , IGroupStateContext context , GroupStateType prevState , SessionInfo session , CancellationToken cancellationToken ) ;
/// <summary>
/// <summary>
/// Handles a queue request from a session. Context's state should not change.
/// Handles a queue request from a session. Context's state should not change.
/// </summary>
/// </summary>
/// <param name="request">The queue request.</param>
/// <param name="context">The context of the state.</param>
/// <param name="context">The context of the state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="request">The queue request.</param>
/// <param name="session">The session.</param>
/// <param name="session">The session.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <param name="cancellationToken">The cancellation token.</param>
void HandleRequest ( IGroupStateContext context , GroupStateType prevState , QueueGroupRequest request , SessionInfo session , CancellationToken cancellationToken ) ;
void HandleRequest ( QueueGroupRequest request , IGroupStateContext context , GroupStateType prevState , SessionInfo session , CancellationToken cancellationToken ) ;
/// <summary>
/// <summary>
/// Handles an unpause request from a session. Context's state can change.
/// Handles an unpause request from a session. Context's state can change.
/// </summary>
/// </summary>
/// <param name="request">The unpause request.</param>
/// <param name="context">The context of the state.</param>
/// <param name="context">The context of the state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="request">The unpause request.</param>
/// <param name="session">The session.</param>
/// <param name="session">The session.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <param name="cancellationToken">The cancellation token.</param>
void HandleRequest ( IGroupStateContext context , GroupStateType prevState , UnpauseGroupRequest request , SessionInfo session , CancellationToken cancellationToken ) ;
void HandleRequest ( UnpauseGroupRequest request , IGroupStateContext context , GroupStateType prevState , SessionInfo session , CancellationToken cancellationToken ) ;
/// <summary>
/// <summary>
/// Handles a pause request from a session. Context's state can change.
/// Handles a pause request from a session. Context's state can change.
/// </summary>
/// </summary>
/// <param name="request">The pause request.</param>
/// <param name="context">The context of the state.</param>
/// <param name="context">The context of the state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="request">The pause request.</param>
/// <param name="session">The session.</param>
/// <param name="session">The session.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <param name="cancellationToken">The cancellation token.</param>
void HandleRequest ( IGroupStateContext context , GroupStateType prevState , PauseGroupRequest request , SessionInfo session , CancellationToken cancellationToken ) ;
void HandleRequest ( PauseGroupRequest request , IGroupStateContext context , GroupStateType prevState , SessionInfo session , CancellationToken cancellationToken ) ;
/// <summary>
/// <summary>
/// Handles a stop request from a session. Context's state can change.
/// Handles a stop request from a session. Context's state can change.
/// </summary>
/// </summary>
/// <param name="request">The stop request.</param>
/// <param name="context">The context of the state.</param>
/// <param name="context">The context of the state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="request">The stop request.</param>
/// <param name="session">The session.</param>
/// <param name="session">The session.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <param name="cancellationToken">The cancellation token.</param>
void HandleRequest ( IGroupStateContext context , GroupStateType prevState , StopGroupRequest request , SessionInfo session , CancellationToken cancellationToken ) ;
void HandleRequest ( StopGroupRequest request , IGroupStateContext context , GroupStateType prevState , SessionInfo session , CancellationToken cancellationToken ) ;
/// <summary>
/// <summary>
/// Handles a seek request from a session. Context's state can change.
/// Handles a seek request from a session. Context's state can change.
/// </summary>
/// </summary>
/// <param name="request">The seek request.</param>
/// <param name="context">The context of the state.</param>
/// <param name="context">The context of the state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="request">The seek request.</param>
/// <param name="session">The session.</param>
/// <param name="session">The session.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <param name="cancellationToken">The cancellation token.</param>
void HandleRequest ( IGroupStateContext context , GroupStateType prevState , SeekGroupRequest request , SessionInfo session , CancellationToken cancellationToken ) ;
void HandleRequest ( SeekGroupRequest request , IGroupStateContext context , GroupStateType prevState , SessionInfo session , CancellationToken cancellationToken ) ;
/// <summary>
/// <summary>
/// Handles a buffer request from a session. Context's state can change.
/// Handles a buffer request from a session. Context's state can change.
/// </summary>
/// </summary>
/// <param name="request">The buffer request.</param>
/// <param name="context">The context of the state.</param>
/// <param name="context">The context of the state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="request">The buffer request.</param>
/// <param name="session">The session.</param>
/// <param name="session">The session.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <param name="cancellationToken">The cancellation token.</param>
void HandleRequest ( IGroupStateContext context , GroupStateType prevState , BufferGroupRequest request , SessionInfo session , CancellationToken cancellationToken ) ;
void HandleRequest ( BufferGroupRequest request , IGroupStateContext context , GroupStateType prevState , SessionInfo session , CancellationToken cancellationToken ) ;
/// <summary>
/// <summary>
/// Handles a ready request from a session. Context's state can change.
/// Handles a ready request from a session. Context's state can change.
/// </summary>
/// </summary>
/// <param name="request">The ready request.</param>
/// <param name="context">The context of the state.</param>
/// <param name="context">The context of the state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="request">The ready request.</param>
/// <param name="session">The session.</param>
/// <param name="session">The session.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <param name="cancellationToken">The cancellation token.</param>
void HandleRequest ( IGroupStateContext context , GroupStateType prevState , ReadyGroupRequest request , SessionInfo session , CancellationToken cancellationToken ) ;
void HandleRequest ( ReadyGroupRequest request , IGroupStateContext context , GroupStateType prevState , SessionInfo session , CancellationToken cancellationToken ) ;
/// <summary>
/// <summary>
/// Handles a next-item request from a session. Context's state can change.
/// Handles a next-item request from a session. Context's state can change.
/// </summary>
/// </summary>
/// <param name="request">The next-item request.</param>
/// <param name="context">The context of the state.</param>
/// <param name="context">The context of the state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="request">The next-item request.</param>
/// <param name="session">The session.</param>
/// <param name="session">The session.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <param name="cancellationToken">The cancellation token.</param>
void HandleRequest ( IGroupStateContext context , GroupStateType prevState , NextItemGroupRequest request , SessionInfo session , CancellationToken cancellationToken ) ;
void HandleRequest ( NextItemGroupRequest request , IGroupStateContext context , GroupStateType prevState , SessionInfo session , CancellationToken cancellationToken ) ;
/// <summary>
/// <summary>
/// Handles a previous-item request from a session. Context's state can change.
/// Handles a previous-item request from a session. Context's state can change.
/// </summary>
/// </summary>
/// <param name="request">The previous-item request.</param>
/// <param name="context">The context of the state.</param>
/// <param name="context">The context of the state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="request">The previous-item request.</param>
/// <param name="session">The session.</param>
/// <param name="session">The session.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <param name="cancellationToken">The cancellation token.</param>
void HandleRequest ( IGroupStateContext context , GroupStateType prevState , PreviousItemGroupRequest request , SessionInfo session , CancellationToken cancellationToken ) ;
void HandleRequest ( PreviousItemGroupRequest request , IGroupStateContext context , GroupStateType prevState , SessionInfo session , CancellationToken cancellationToken ) ;
/// <summary>
/// <summary>
/// Handles a set-repeat-mode request from a session. Context's state should not change.
/// Handles a set-repeat-mode request from a session. Context's state should not change.
/// </summary>
/// </summary>
/// <param name="request">The repeat-mode request.</param>
/// <param name="context">The context of the state.</param>
/// <param name="context">The context of the state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="request">The repeat-mode request.</param>
/// <param name="session">The session.</param>
/// <param name="session">The session.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <param name="cancellationToken">The cancellation token.</param>
void HandleRequest ( IGroupStateContext context , GroupStateType prevState , SetRepeatModeGroupRequest request , SessionInfo session , CancellationToken cancellationToken ) ;
void HandleRequest ( SetRepeatModeGroupRequest request , IGroupStateContext context , GroupStateType prevState , SessionInfo session , CancellationToken cancellationToken ) ;
/// <summary>
/// <summary>
/// Handles a set-shuffle-mode request from a session. Context's state should not change.
/// Handles a set-shuffle-mode request from a session. Context's state should not change.
/// </summary>
/// </summary>
/// <param name="request">The shuffle-mode request.</param>
/// <param name="context">The context of the state.</param>
/// <param name="context">The context of the state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="request">The shuffle-mode request.</param>
/// <param name="session">The session.</param>
/// <param name="session">The session.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <param name="cancellationToken">The cancellation token.</param>
void HandleRequest ( IGroupStateContext context , GroupStateType prevState , SetShuffleModeGroupRequest request , SessionInfo session , CancellationToken cancellationToken ) ;
void HandleRequest ( SetShuffleModeGroupRequest request , IGroupStateContext context , GroupStateType prevState , SessionInfo session , CancellationToken cancellationToken ) ;
/// <summary>
/// <summary>
/// Updates the ping of a session. Context's state should not change.
/// Updates the ping of a session. Context's state should not change.
/// </summary>
/// </summary>
/// <param name="request">The ping request.</param>
/// <param name="context">The context of the state.</param>
/// <param name="context">The context of the state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="request">The ping request.</param>
/// <param name="session">The session.</param>
/// <param name="session">The session.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <param name="cancellationToken">The cancellation token.</param>
void HandleRequest ( IGroupStateContext context , GroupStateType prevState , PingGroupRequest request , SessionInfo session , CancellationToken cancellationToken ) ;
void HandleRequest ( PingGroupRequest request , IGroupStateContext context , GroupStateType prevState , SessionInfo session , CancellationToken cancellationToken ) ;
/// <summary>
/// <summary>
/// Handles a ignore-wait request from a session. Context's state can change.
/// Handles a ignore-wait request from a session. Context's state can change.
/// </summary>
/// </summary>
/// <param name="request">The ignore-wait request.</param>
/// <param name="context">The context of the state.</param>
/// <param name="context">The context of the state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="prevState">The previous state.</param>
/// <param name="request">The ignore-wait request.</param>
/// <param name="session">The session.</param>
/// <param name="session">The session.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <param name="cancellationToken">The cancellation token.</param>
void HandleRequest ( I GroupStateContext context , GroupStateType prevState , IgnoreWaitGroupRequest request , SessionInfo session , CancellationToken cancellationToken ) ;
void HandleRequest ( I gnoreWaitGroupRequest request , I GroupStateContext context , GroupStateType prevState , SessionInfo session , CancellationToken cancellationToken ) ;
}
}
}
}