/**
* Grasscutter Tools
* Copyright (C) 2023 jie65535
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*
**/
using Newtonsoft.Json;
namespace GrasscutterTools.Utils
{
///
/// 热键项
///
internal class HotKeyItem
{
public HotKeyItem()
{
}
public HotKeyItem(string tag, string commands, string hotKey, bool isEnabled = true)
{
Tag = tag;
Commands = commands;
HotKey = hotKey;
IsEnabled = isEnabled;
}
///
/// Gets or sets the hot key identifier.
///
///
/// The hot key identifier.
///
[JsonIgnore]
public int HotKeyId { get; set; }
///
/// Gets or sets the name of the Tag.
///
///
/// The name of the Tag.
///
public string Tag { get; set; }
///
/// Gets or sets the Commands.
///
///
/// The Commands.
///
public string Commands { get; set; }
///
/// Gets or sets the hot key.
/// 组合键之间使用+隔开,例如:"Ctrl+Shift+W"
///
///
/// The hot key.
///
public string HotKey { get; set; }
///
/// Gets or sets a value indicating whether this is enabled.
///
///
/// true if enabled; otherwise, false.
///
public bool IsEnabled { get; set; } = true;
}
}