You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.2 KiB
37 lines
1.2 KiB
4 years ago
|
using System.Threading;
|
||
|
using MediaBrowser.Controller.Session;
|
||
4 years ago
|
using MediaBrowser.Model.SyncPlay;
|
||
4 years ago
|
|
||
4 years ago
|
namespace MediaBrowser.Controller.SyncPlay.PlaybackRequests
|
||
4 years ago
|
{
|
||
|
/// <summary>
|
||
4 years ago
|
/// Class PreviousItemGroupRequest.
|
||
4 years ago
|
/// </summary>
|
||
4 years ago
|
public class PreviousItemGroupRequest : AbstractPlaybackRequest
|
||
4 years ago
|
{
|
||
|
/// <summary>
|
||
4 years ago
|
/// Initializes a new instance of the <see cref="PreviousItemGroupRequest"/> class.
|
||
4 years ago
|
/// </summary>
|
||
|
/// <param name="playlistItemId">The playing item identifier.</param>
|
||
4 years ago
|
public PreviousItemGroupRequest(string playlistItemId)
|
||
4 years ago
|
{
|
||
|
PlaylistItemId = playlistItemId;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// Gets the playing item identifier.
|
||
4 years ago
|
/// </summary>
|
||
4 years ago
|
/// <value>The playing item identifier.</value>
|
||
4 years ago
|
public string PlaylistItemId { get; }
|
||
4 years ago
|
|
||
|
/// <inheritdoc />
|
||
4 years ago
|
public override PlaybackRequestType Action { get; } = PlaybackRequestType.PreviousItem;
|
||
4 years ago
|
|
||
|
/// <inheritdoc />
|
||
4 years ago
|
public override void Apply(IGroupStateContext context, IGroupState state, SessionInfo session, CancellationToken cancellationToken)
|
||
4 years ago
|
{
|
||
4 years ago
|
state.HandleRequest(context, state.Type, this, session, cancellationToken);
|
||
4 years ago
|
}
|
||
|
}
|
||
|
}
|