jellyfin/MediaBrowser.Model/Session/PlayRequest.cs

41 lines
1.8 KiB
C#
Raw Normal View History

2017-11-09 20:58:09 +00:00
using MediaBrowser.Model.Services;
2013-05-09 22:43:11 +00:00
namespace MediaBrowser.Model.Session
{
/// <summary>
/// Class PlayRequest
/// </summary>
public class PlayRequest
{
/// <summary>
/// Gets or sets the item ids.
/// </summary>
/// <value>The item ids.</value>
2017-11-09 20:58:09 +00:00
[ApiMember(Name = "ItemIds", Description = "The ids of the items to play, comma delimited", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "POST", AllowMultiple = true)]
2013-05-09 22:43:11 +00:00
public string[] ItemIds { get; set; }
/// <summary>
/// Gets or sets the start position ticks that the first item should be played at
/// </summary>
/// <value>The start position ticks.</value>
2017-11-09 20:58:09 +00:00
[ApiMember(Name = "StartPositionTicks", Description = "The starting position of the first item.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "POST")]
2013-05-09 22:43:11 +00:00
public long? StartPositionTicks { get; set; }
/// <summary>
/// Gets or sets the play command.
/// </summary>
/// <value>The play command.</value>
2017-11-09 20:58:09 +00:00
[ApiMember(Name = "PlayCommand", Description = "The type of play command to issue (PlayNow, PlayNext, PlayLast). Clients who have not yet implemented play next and play last may play now.", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "POST")]
2013-05-09 22:43:11 +00:00
public PlayCommand PlayCommand { get; set; }
/// <summary>
/// Gets or sets the controlling user identifier.
/// </summary>
/// <value>The controlling user identifier.</value>
public string ControllingUserId { get; set; }
2017-11-09 20:58:09 +00:00
public int? SubtitleStreamIndex { get; set; }
public int? AudioStreamIndex { get; set; }
public string MediaSourceId { get; set; }
2013-05-09 22:43:11 +00:00
}
2014-03-13 09:18:32 +00:00
}