WGet.NET 4.4.1
A WinGet wrapper library for .Net.
Loading...
Searching...
No Matches
SettingsModel.cs
1//--------------------------------------------------//
2// Created by basicx-StrgV //
3// https://github.com/basicx-StrgV/ //
4//--------------------------------------------------//
5using System.Collections.Generic;
6#if NETCOREAPP3_1_OR_GREATER
7using System.Text.Json;
8using System.Text.Json.Serialization;
9#elif NETSTANDARD2_0
10using Newtonsoft.Json;
11#endif
12
13namespace WGetNET.Models
14{
18 internal class SettingsModel
19 {
23#if NETCOREAPP3_1_OR_GREATER
24 [JsonPropertyName("adminSettings")]
25#elif NETSTANDARD2_0
26 [JsonProperty("adminSettings")]
27#endif
28 public Dictionary<string, bool> AdminSettings { get; set; } = new();
29
33#if NETCOREAPP3_1_OR_GREATER
34 [JsonPropertyName("userSettingsFile")]
35#elif NETSTANDARD2_0
36 [JsonProperty("userSettingsFile")]
37#endif
38 public string UserSettingsFile { get; set; } = string.Empty;
39 }
40}