2020-08-17 10:00:56 -07: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-23 13:20:32 -07:00
|
|
|
|
using System.Text.Json;
|
2020-08-17 10:00:56 -07:00
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
|
2020-10-22 09:45:48 -07:00
|
|
|
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
2020-08-17 10:00:56 -07:00
|
|
|
|
{
|
|
|
|
|
|
public class RemapKeysDataModel
|
|
|
|
|
|
{
|
2020-10-19 13:32:05 -07:00
|
|
|
|
// Suppressing this warning because removing the setter breaks
|
|
|
|
|
|
// deserialization with System.Text.Json. This affects the UI display.
|
|
|
|
|
|
// See: https://github.com/dotnet/runtime/issues/30258
|
2020-08-17 10:00:56 -07:00
|
|
|
|
[JsonPropertyName("inProcess")]
|
|
|
|
|
|
public List<KeysDataModel> InProcessRemapKeys { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public RemapKeysDataModel()
|
|
|
|
|
|
{
|
|
|
|
|
|
InProcessRemapKeys = new List<KeysDataModel>();
|
|
|
|
|
|
}
|
2020-09-23 13:20:32 -07:00
|
|
|
|
|
|
|
|
|
|
public string ToJsonString()
|
|
|
|
|
|
{
|
|
|
|
|
|
return JsonSerializer.Serialize(this);
|
|
|
|
|
|
}
|
2020-08-17 10:00:56 -07:00
|
|
|
|
}
|
|
|
|
|
|
}
|