aboutsummaryrefslogtreecommitdiffstats
path: root/src/Data/Miscellaneous/AppSettings.cs
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-06-01 21:13:43 +0200
committerivarlovlie <git@ivarlovlie.no>2022-06-01 21:13:43 +0200
commit9383a2fb09ffb60cfe63683106945bd688affa59 (patch)
tree65b3f4b48841583e355887db5de5a16e7005fc87 /src/Data/Miscellaneous/AppSettings.cs
downloadvinjesvingenhandel.no-9383a2fb09ffb60cfe63683106945bd688affa59.tar.xz
vinjesvingenhandel.no-9383a2fb09ffb60cfe63683106945bd688affa59.zip
feat: Initial commit after clean slate
Diffstat (limited to 'src/Data/Miscellaneous/AppSettings.cs')
-rw-r--r--src/Data/Miscellaneous/AppSettings.cs118
1 files changed, 118 insertions, 0 deletions
diff --git a/src/Data/Miscellaneous/AppSettings.cs b/src/Data/Miscellaneous/AppSettings.cs
new file mode 100644
index 0000000..048c67c
--- /dev/null
+++ b/src/Data/Miscellaneous/AppSettings.cs
@@ -0,0 +1,118 @@
+using System.Text.Json.Serialization;
+
+namespace VSH.Data.Miscellaneous;
+
+public class AppSettings
+{
+ [JsonPropertyName("General")]
+ public GeneralConfiguration General { get; set; }
+
+ [JsonPropertyName("Serilog")]
+ public SerilogConfiguration Serilog { get; set; }
+
+ public class GeneralConfiguration
+ {
+ public const string Name = "General";
+
+ [JsonPropertyName("StoreName")]
+ public string StoreName { get; set; }
+
+ [JsonPropertyName("LegalName")]
+ public string LegalName { get; set; }
+
+ [JsonPropertyName("ShortStoreName")]
+ public string ShortStoreName { get; set; }
+
+ [JsonPropertyName("DefaultCulture")]
+ public string DefaultCulture { get; set; }
+
+ [JsonPropertyName("GoogleMapsUrl")]
+ public string GoogleMapsUrl { get; set; }
+
+ [JsonPropertyName("DefaultDescription")]
+ public string DefaultDescription { get; set; }
+ }
+
+ public class SerilogConfiguration
+ {
+ public const string Name = "Serilog";
+
+ [JsonPropertyName("Using")]
+ public string[] Using { get; set; }
+
+ [JsonPropertyName("MinimumLevel")]
+ public MinimumLevel MinimumLevel { get; set; }
+
+ [JsonPropertyName("WriteTo")]
+ public WriteTo[] WriteTo { get; set; }
+
+ [JsonPropertyName("Enrich")]
+ public string[] Enrich { get; set; }
+
+ [JsonPropertyName("Destructure")]
+ public Destructure[] Destructure { get; set; }
+
+ [JsonPropertyName("Properties")]
+ public Properties Properties { get; set; }
+ }
+
+ public class Destructure
+ {
+ [JsonPropertyName("Name")]
+ public string Name { get; set; }
+
+ [JsonPropertyName("Args")]
+ public Args Args { get; set; }
+ }
+
+ public class Args
+ {
+ [JsonPropertyName("maximumDestructuringDepth")]
+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
+ public long? MaximumDestructuringDepth { get; set; }
+
+ [JsonPropertyName("maximumStringLength")]
+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
+ public long? MaximumStringLength { get; set; }
+
+ [JsonPropertyName("maximumCollectionCount")]
+ [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
+ public long? MaximumCollectionCount { get; set; }
+ }
+
+ public class MinimumLevel
+ {
+ [JsonPropertyName("Default")]
+ public string Default { get; set; }
+
+ [JsonPropertyName("Override")]
+ public Override Override { get; set; }
+ }
+
+ public class Override
+ {
+ [JsonPropertyName("Microsoft")]
+ public string Microsoft { get; set; }
+
+ [JsonPropertyName("System")]
+ public string System { get; set; }
+
+ [JsonPropertyName("Microsoft.AspNetCore")]
+ public string MicrosoftAspNetCore { get; set; }
+
+ [JsonPropertyName("Microsoft.Hosting")]
+ public string MicrosoftHosting { get; set; }
+ }
+
+ public class Properties
+ {
+ [JsonPropertyName("Application")]
+ public string Application { get; set; }
+ }
+
+ public class WriteTo
+ {
+ [JsonPropertyName("Name")]
+ public string Name { get; set; }
+ }
+} \ No newline at end of file