feat: convert supportedCommands strings to enums

This commit is contained in:
github@esslinger.dev
2020-10-01 18:43:44 +02:00
parent c7b3d4a90c
commit dd4f3a7c51
4 changed files with 16 additions and 16 deletions

View File

@@ -230,8 +230,8 @@ namespace MediaBrowser.Controller.Session
/// Gets or sets the supported commands.
/// </summary>
/// <value>The supported commands.</value>
public string[] SupportedCommands
=> Capabilities == null ? Array.Empty<string>() : Capabilities.SupportedCommands;
public GeneralCommandType[] SupportedCommands
=> Capabilities == null ? Array.Empty<GeneralCommandType>() : Capabilities.SupportedCommands;
public Tuple<ISessionController, bool> EnsureController<T>(Func<SessionInfo, ISessionController> factory)
{