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.
42 lines
1.3 KiB
42 lines
1.3 KiB
4 years ago
|
using System;
|
||
4 years ago
|
using System.Collections.Generic;
|
||
5 years ago
|
using System.Threading;
|
||
|
using MediaBrowser.Controller.Session;
|
||
4 years ago
|
using MediaBrowser.Model.SyncPlay;
|
||
5 years ago
|
|
||
|
namespace MediaBrowser.Controller.SyncPlay
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Class PlayGroupRequest.
|
||
|
/// </summary>
|
||
4 years ago
|
public class PlayGroupRequest : IGroupPlaybackRequest
|
||
5 years ago
|
{
|
||
4 years ago
|
/// <summary>
|
||
4 years ago
|
/// Gets the playing queue.
|
||
4 years ago
|
/// </summary>
|
||
|
/// <value>The playing queue.</value>
|
||
4 years ago
|
public List<Guid> PlayingQueue { get; } = new List<Guid>();
|
||
4 years ago
|
|
||
|
/// <summary>
|
||
|
/// Gets or sets the playing item from the queue.
|
||
|
/// </summary>
|
||
|
/// <value>The playing item.</value>
|
||
|
public int PlayingItemPosition { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Gets or sets the start position ticks.
|
||
|
/// </summary>
|
||
|
/// <value>The start position ticks.</value>
|
||
|
public long StartPositionTicks { get; set; }
|
||
|
|
||
5 years ago
|
/// <inheritdoc />
|
||
4 years ago
|
public PlaybackRequestType Type { get; } = PlaybackRequestType.Play;
|
||
5 years ago
|
|
||
|
/// <inheritdoc />
|
||
4 years ago
|
public void Apply(IGroupStateContext context, IGroupState state, SessionInfo session, CancellationToken cancellationToken)
|
||
5 years ago
|
{
|
||
4 years ago
|
state.HandleRequest(context, state.Type, this, session, cancellationToken);
|
||
5 years ago
|
}
|
||
|
}
|
||
|
}
|