jellyfin/MediaBrowser.Model/Session/GeneralCommand.cs

28 lines
603 B
C#
Raw Normal View History

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