/ src / settings-ui / Settings.UI.Library / PowerAccentSettings.cs
PowerAccentSettings.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  using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
 8  
 9  namespace Microsoft.PowerToys.Settings.UI.Library
10  {
11      public class PowerAccentSettings : BasePTModuleSettings, ISettingsConfig
12      {
13          public const string ModuleName = "QuickAccent";
14          public const string ModuleVersion = "0.0.1";
15          public const int DefaultInputTimeMs = 300; // PowerAccentKeyboardService.PowerAccentSettings.inputTime should be the same
16  
17          [JsonPropertyName("properties")]
18          public PowerAccentProperties Properties { get; set; }
19  
20          public PowerAccentSettings()
21          {
22              Name = ModuleName;
23              Version = ModuleVersion;
24              Properties = new PowerAccentProperties();
25          }
26  
27          public string GetModuleName()
28          {
29              return Name;
30          }
31  
32          public bool UpgradeSettingsConfiguration()
33          {
34              return false;
35          }
36      }
37  }