/ src / settings-ui / Settings.UI.Library / NewPlusSettings.cs
NewPlusSettings.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;
 6  using System.Globalization;
 7  using System.Text.Json;
 8  using System.Text.Json.Serialization;
 9  using System.Text.RegularExpressions;
10  
11  using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
12  using Settings.UI.Library.Resources;
13  
14  namespace Microsoft.PowerToys.Settings.UI.Library
15  {
16      public class NewPlusSettings : BasePTModuleSettings, ISettingsConfig
17      {
18          public const string ModuleName = "NewPlus";
19          public const string ModuleVersion = "1.0";
20  
21          [JsonPropertyName("properties")]
22          public NewPlusProperties Properties { get; set; }
23  
24          public NewPlusSettings()
25          {
26              Name = ModuleName;
27              Version = ModuleVersion;
28              Properties = new NewPlusProperties();
29          }
30  
31          public string GetModuleName()
32          {
33              return Name;
34          }
35  
36          // This can be utilized in the future if the settings.json file is to be modified/deleted.
37          public bool UpgradeSettingsConfiguration()
38          {
39              return false;
40          }
41      }
42  }