Merge pull request #4192 from nielsvanvelzen/generalcommand-sucks

Use GeneralCommandType enum in GeneralCommand
This commit is contained in:
Anthony Lavado
2020-09-23 09:57:45 -04:00
committed by GitHub
5 changed files with 47 additions and 57 deletions

View File

@@ -1037,7 +1037,7 @@ namespace Emby.Server.Implementations.Session
var generalCommand = new GeneralCommand
{
Name = GeneralCommandType.DisplayMessage.ToString()
Name = GeneralCommandType.DisplayMessage
};
generalCommand.Arguments["Header"] = command.Header;
@@ -1268,7 +1268,7 @@ namespace Emby.Server.Implementations.Session
{
var generalCommand = new GeneralCommand
{
Name = GeneralCommandType.DisplayContent.ToString(),
Name = GeneralCommandType.DisplayContent,
Arguments =
{
["ItemId"] = command.ItemId,