Merge pull request #7380 from crobibero/general-command

This commit is contained in:
Bond-009
2022-03-03 13:55:33 +01:00
committed by GitHub

View File

@@ -2,14 +2,21 @@
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace MediaBrowser.Model.Session;
namespace MediaBrowser.Model.Session
{
public class GeneralCommand
{
public GeneralCommand()
: this(new Dictionary<string, string>())
{
Arguments = new Dictionary<string, string>();
}
[JsonConstructor]
public GeneralCommand(Dictionary<string, string> arguments)
{
Arguments = arguments;
}
public GeneralCommandType Name { get; set; }
@@ -18,4 +25,3 @@ namespace MediaBrowser.Model.Session
public Dictionary<string, string> Arguments { get; }
}
}