|
|
|
@ -46,14 +46,6 @@ namespace MediaBrowser.Api
|
|
|
|
|
[ApiMember(Name = "Id", Description = "Session Id", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "POST")]
|
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the UserId.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The id.</value>
|
|
|
|
|
[ApiMember(Name = "UserId", Description = "The controlling User Id", IsRequired = false, DataType = "string", ParameterType = "path", Verb = "POST")]
|
|
|
|
|
public Guid UserId { get; set; }
|
|
|
|
|
//TODO IsRequired = false shall be changed to true once the clients has been updated and the new ApiClient is in use
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Artist, Genre, Studio, Person, or any kind of BaseItem
|
|
|
|
|
/// </summary>
|
|
|
|
@ -96,14 +88,6 @@ namespace MediaBrowser.Api
|
|
|
|
|
[ApiMember(Name = "Id", Description = "Session Id", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "POST")]
|
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the UserId.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The id.</value>
|
|
|
|
|
[ApiMember(Name = "UserId", Description = "The controlling User Id", IsRequired = false, DataType = "string", ParameterType = "path", Verb = "POST")]
|
|
|
|
|
public Guid UserId { get; set; }
|
|
|
|
|
//TODO IsRequired = false shall be changed to true once the clients has been updated and the new ApiClient is in use
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Artist, Genre, Studio, Person, or any kind of BaseItem
|
|
|
|
|
/// </summary>
|
|
|
|
@ -137,14 +121,6 @@ namespace MediaBrowser.Api
|
|
|
|
|
[ApiMember(Name = "Id", Description = "Session Id", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "POST")]
|
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the UserId.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The id.</value>
|
|
|
|
|
[ApiMember(Name = "UserId", Description = "The controlling User Id", IsRequired = false, DataType = "string", ParameterType = "path", Verb = "POST")]
|
|
|
|
|
public Guid UserId { get; set; }
|
|
|
|
|
//TODO IsRequired = false shall be changed to true once the clients has been updated and the new ApiClient is in use
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the position to seek to
|
|
|
|
|
/// </summary>
|
|
|
|
@ -170,14 +146,6 @@ namespace MediaBrowser.Api
|
|
|
|
|
[ApiMember(Name = "Id", Description = "Session Id", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "POST")]
|
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the UserId.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The id.</value>
|
|
|
|
|
[ApiMember(Name = "UserId", Description = "The controlling User Id", IsRequired = false, DataType = "string", ParameterType = "path", Verb = "POST")]
|
|
|
|
|
public Guid UserId { get; set; }
|
|
|
|
|
//TODO IsRequired = false shall be changed to true once the clients has been updated and the new ApiClient is in use
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the command.
|
|
|
|
|
/// </summary>
|
|
|
|
@ -197,14 +165,6 @@ namespace MediaBrowser.Api
|
|
|
|
|
[ApiMember(Name = "Id", Description = "Session Id", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "POST")]
|
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the UserId.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The id.</value>
|
|
|
|
|
[ApiMember(Name = "UserId", Description = "The controlling User Id", IsRequired = false, DataType = "string", ParameterType = "path", Verb = "POST")]
|
|
|
|
|
public Guid UserId { get; set; }
|
|
|
|
|
//TODO IsRequired = false shall be changed to true once the clients has been updated and the new ApiClient is in use
|
|
|
|
|
|
|
|
|
|
[ApiMember(Name = "Text", Description = "The message text.", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "POST")]
|
|
|
|
|
public string Text { get; set; }
|
|
|
|
|
|
|
|
|
@ -251,7 +211,7 @@ namespace MediaBrowser.Api
|
|
|
|
|
[ApiMember(Name = "PlayableMediaTypes", Description = "A list of playable media types, comma delimited. Audio, Video, Book, Game, Photo.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "POST")]
|
|
|
|
|
public string PlayableMediaTypes { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Class SessionsService
|
|
|
|
|
/// </summary>
|
|
|
|
@ -310,10 +270,9 @@ namespace MediaBrowser.Api
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Post(SendPlaystateCommand request)
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
var command = new PlaystateRequest
|
|
|
|
|
{
|
|
|
|
|
UserId = request.UserId,
|
|
|
|
|
Command = request.Command,
|
|
|
|
|
SeekPositionTicks = request.SeekPositionTicks
|
|
|
|
|
};
|
|
|
|
@ -331,7 +290,6 @@ namespace MediaBrowser.Api
|
|
|
|
|
{
|
|
|
|
|
var command = new BrowseRequest
|
|
|
|
|
{
|
|
|
|
|
UserId = request.UserId,
|
|
|
|
|
Context = request.Context,
|
|
|
|
|
ItemId = request.ItemId,
|
|
|
|
|
ItemName = request.ItemName,
|
|
|
|
@ -363,7 +321,6 @@ namespace MediaBrowser.Api
|
|
|
|
|
var command = new MessageCommand
|
|
|
|
|
{
|
|
|
|
|
Header = string.IsNullOrEmpty(request.Header) ? "Message from Server" : request.Header,
|
|
|
|
|
UserId = request.UserId,
|
|
|
|
|
TimeoutMs = request.TimeoutMs,
|
|
|
|
|
Text = request.Text
|
|
|
|
|
};
|
|
|
|
@ -382,7 +339,7 @@ namespace MediaBrowser.Api
|
|
|
|
|
var command = new PlayRequest
|
|
|
|
|
{
|
|
|
|
|
ItemIds = request.ItemIds.Split(',').ToArray(),
|
|
|
|
|
UserId = request.UserId,
|
|
|
|
|
|
|
|
|
|
PlayCommand = request.PlayCommand,
|
|
|
|
|
StartPositionTicks = request.StartPositionTicks
|
|
|
|
|
};
|
|
|
|
@ -411,4 +368,4 @@ namespace MediaBrowser.Api
|
|
|
|
|
.ToList();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|