| | | 1 | | #nullable disable |
| | | 2 | | |
| | | 3 | | using System; |
| | | 4 | | using System.Threading; |
| | | 5 | | using MediaBrowser.Controller.Session; |
| | | 6 | | using MediaBrowser.Model.SyncPlay; |
| | | 7 | | |
| | | 8 | | namespace MediaBrowser.Controller.SyncPlay.PlaybackRequests |
| | | 9 | | { |
| | | 10 | | /// <summary> |
| | | 11 | | /// Class SetPlaylistItemGroupRequest. |
| | | 12 | | /// </summary> |
| | | 13 | | public class SetPlaylistItemGroupRequest : AbstractPlaybackRequest |
| | | 14 | | { |
| | | 15 | | /// <summary> |
| | | 16 | | /// Initializes a new instance of the <see cref="SetPlaylistItemGroupRequest"/> class. |
| | | 17 | | /// </summary> |
| | | 18 | | /// <param name="playlistItemId">The playlist identifier of the item.</param> |
| | 0 | 19 | | public SetPlaylistItemGroupRequest(Guid playlistItemId) |
| | | 20 | | { |
| | | 21 | | PlaylistItemId = playlistItemId; |
| | 0 | 22 | | } |
| | | 23 | | |
| | | 24 | | /// <summary> |
| | | 25 | | /// Gets the playlist identifier of the playing item. |
| | | 26 | | /// </summary> |
| | | 27 | | /// <value>The playlist identifier of the playing item.</value> |
| | | 28 | | public Guid PlaylistItemId { get; } |
| | | 29 | | |
| | | 30 | | /// <inheritdoc /> |
| | | 31 | | public override PlaybackRequestType Action { get; } = PlaybackRequestType.SetPlaylistItem; |
| | | 32 | | |
| | | 33 | | /// <inheritdoc /> |
| | | 34 | | public override void Apply(IGroupStateContext context, IGroupState state, SessionInfo session, CancellationToken |
| | | 35 | | { |
| | 0 | 36 | | state.HandleRequest(this, context, state.Type, session, cancellationToken); |
| | 0 | 37 | | } |
| | | 38 | | } |
| | | 39 | | } |