using Newtonsoft.Json.Converters; using System.Text.Json.Serialization; using static SharedLibraryCore.Database.Models.EFClient; namespace SharedLibraryCore.Configuration { /// /// Config driven command properties /// public class CommandProperties { /// /// Specifies the command name /// public string Name { get; set; } /// /// Alias of this command /// public string Alias { get; set; } /// /// Specifies the minimum permission level needed to execute the /// [JsonConverter(typeof(StringEnumConverter))] public Permission MinimumPermission { get; set; } /// /// Indicates if the command can be run by another user (impersonation) /// public bool AllowImpersonation { get; set; } } }