PowerDisplayActionMessage.cs
1 // Copyright (c) Microsoft Corporation 2 // The Microsoft Corporation licenses this file to you under the MIT license. 3 // See the LICENSE file in the project root for more information. 4 5 using System.Text.Json.Serialization; 6 7 namespace Microsoft.PowerToys.Settings.UI.Library 8 { 9 /// <summary> 10 /// Message for PowerDisplay module actions 11 /// </summary> 12 public class PowerDisplayActionMessage 13 { 14 [JsonPropertyName("action")] 15 public ActionData Action { get; set; } 16 17 public class ActionData 18 { 19 [JsonPropertyName("PowerDisplay")] 20 public PowerDisplayAction PowerDisplay { get; set; } 21 } 22 23 public class PowerDisplayAction 24 { 25 [JsonPropertyName("action_name")] 26 public string ActionName { get; set; } 27 28 [JsonPropertyName("value")] 29 public string Value { get; set; } 30 } 31 } 32 }