2020-08-18 01:00:56 +08:00
|
|
|
|
// Copyright (c) Microsoft Corporation
|
|
|
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|
|
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
2020-09-24 04:20:32 +08:00
|
|
|
|
using System.Text.Json;
|
2020-08-18 01:00:56 +08:00
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.PowerToys.Settings.UI.Lib
|
|
|
|
|
{
|
|
|
|
|
public class ShortcutsKeyDataModel
|
|
|
|
|
{
|
|
|
|
|
[JsonPropertyName("global")]
|
|
|
|
|
public List<KeysDataModel> GlobalRemapShortcuts { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("appSpecific")]
|
|
|
|
|
public List<AppSpecificKeysDataModel> AppSpecificRemapShortcuts { get; set; }
|
|
|
|
|
|
|
|
|
|
public ShortcutsKeyDataModel()
|
|
|
|
|
{
|
|
|
|
|
GlobalRemapShortcuts = new List<KeysDataModel>();
|
|
|
|
|
AppSpecificRemapShortcuts = new List<AppSpecificKeysDataModel>();
|
|
|
|
|
}
|
2020-09-24 04:20:32 +08:00
|
|
|
|
|
|
|
|
|
public string ToJsonString()
|
|
|
|
|
{
|
|
|
|
|
return JsonSerializer.Serialize(this);
|
|
|
|
|
}
|
2020-08-18 01:00:56 +08:00
|
|
|
|
}
|
|
|
|
|
}
|