jellyfin-server/MediaBrowser.Model/Session/GeneralCommand.cs

28 lines
603 B
C#
Raw Normal View History

2020-02-04 00:49:27 +00:00
#pragma warning disable CS1591
using System;
using System.Collections.Generic;
2022-03-01 00:30:17 +00:00
using System.Text.Json.Serialization;
2018-12-27 23:27:57 +00:00
2022-03-01 00:30:17 +00:00
namespace MediaBrowser.Model.Session;
public class GeneralCommand
2018-12-27 23:27:57 +00:00
{
2022-03-01 00:30:17 +00:00
public GeneralCommand()
: this(new Dictionary<string, string>())
{
}
[JsonConstructor]
public GeneralCommand(Dictionary<string, string>? arguments)
2018-12-27 23:27:57 +00:00
{
Arguments = arguments ?? new Dictionary<string, string>();
2022-03-01 00:30:17 +00:00
}
2022-03-01 00:30:17 +00:00
public GeneralCommandType Name { get; set; }
2022-03-01 00:30:17 +00:00
public Guid ControllingUserId { get; set; }
2022-03-01 00:30:17 +00:00
public Dictionary<string, string> Arguments { get; }
2018-12-27 23:27:57 +00:00
}