|
|
|
@ -108,6 +108,12 @@ namespace MediaBrowser.Controller.Session
|
|
|
|
|
/// <value>The name of the device.</value>
|
|
|
|
|
public string DeviceName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the type of the device.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The type of the device.</value>
|
|
|
|
|
public string DeviceType { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the now playing item.
|
|
|
|
|
/// </summary>
|
|
|
|
@ -215,8 +221,17 @@ namespace MediaBrowser.Controller.Session
|
|
|
|
|
|
|
|
|
|
public string PlaylistItemId { get; set; }
|
|
|
|
|
|
|
|
|
|
public string ServerId { get; set; }
|
|
|
|
|
|
|
|
|
|
public string UserPrimaryImageTag { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the supported commands.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The supported commands.</value>
|
|
|
|
|
public string[] SupportedCommands
|
|
|
|
|
=> Capabilities == null ? Array.Empty<string>() : Capabilities.SupportedCommands;
|
|
|
|
|
|
|
|
|
|
public Tuple<ISessionController, bool> EnsureController<T>(Func<SessionInfo, ISessionController> factory)
|
|
|
|
|
{
|
|
|
|
|
var controllers = SessionControllers.ToList();
|
|
|
|
|