2022-01-24 21:29:16 +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.Text.Json;
|
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
|
|
|
|
{
|
2022-01-26 22:01:24 +08:00
|
|
|
|
public class MousePointerCrosshairsSettingsIPCMessage
|
2022-01-24 21:29:16 +08:00
|
|
|
|
{
|
|
|
|
|
[JsonPropertyName("powertoys")]
|
2022-01-26 22:01:24 +08:00
|
|
|
|
public SndMousePointerCrosshairsSettings Powertoys { get; set; }
|
2022-01-24 21:29:16 +08:00
|
|
|
|
|
2022-01-26 22:01:24 +08:00
|
|
|
|
public MousePointerCrosshairsSettingsIPCMessage()
|
2022-01-24 21:29:16 +08:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-26 22:01:24 +08:00
|
|
|
|
public MousePointerCrosshairsSettingsIPCMessage(SndMousePointerCrosshairsSettings settings)
|
2022-01-24 21:29:16 +08:00
|
|
|
|
{
|
|
|
|
|
this.Powertoys = settings;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string ToJsonString()
|
|
|
|
|
{
|
|
|
|
|
return JsonSerializer.Serialize(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|