diff options
| author | Bond-009 <bond.009@outlook.com> | 2022-03-03 13:55:33 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-03 13:55:33 +0100 |
| commit | 2dbb32976cb72cd8c2a69da19f765466c84454c6 (patch) | |
| tree | 8d8cedf15348c5a72e70d5a904c1d14efe237b53 | |
| parent | 6e91657f01bfe90689580fd76b0e76814c9bb5ec (diff) | |
| parent | dc1b2246671749a9b4eaf64bd356877ff4e08b48 (diff) | |
Merge pull request #7380 from crobibero/general-command
| -rw-r--r-- | MediaBrowser.Model/Session/GeneralCommand.cs | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/MediaBrowser.Model/Session/GeneralCommand.cs b/MediaBrowser.Model/Session/GeneralCommand.cs index 29528c110..757b19b31 100644 --- a/MediaBrowser.Model/Session/GeneralCommand.cs +++ b/MediaBrowser.Model/Session/GeneralCommand.cs @@ -2,20 +2,26 @@ using System; using System.Collections.Generic; +using System.Text.Json.Serialization; -namespace MediaBrowser.Model.Session +namespace MediaBrowser.Model.Session; + +public class GeneralCommand { - public class GeneralCommand + public GeneralCommand() + : this(new Dictionary<string, string>()) + { + } + + [JsonConstructor] + public GeneralCommand(Dictionary<string, string> arguments) { - public GeneralCommand() - { - Arguments = new Dictionary<string, string>(); - } + Arguments = arguments; + } - public GeneralCommandType Name { get; set; } + public GeneralCommandType Name { get; set; } - public Guid ControllingUserId { get; set; } + public Guid ControllingUserId { get; set; } - public Dictionary<string, string> Arguments { get; } - } + public Dictionary<string, string> Arguments { get; } } |
