jellyfin/MediaBrowser.Model/Session/GeneralCommand.cs

28 lines
603 B
C#
Raw Normal View History

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