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