diff options
Diffstat (limited to 'src/Data/Miscellaneous')
| -rw-r--r-- | src/Data/Miscellaneous/AppCookie.cs | 8 | ||||
| -rw-r--r-- | src/Data/Miscellaneous/AppPath.cs | 7 | ||||
| -rw-r--r-- | src/Data/Miscellaneous/AppSettings.cs | 118 | ||||
| -rw-r--r-- | src/Data/Miscellaneous/OpenGraphData.cs | 12 |
4 files changed, 145 insertions, 0 deletions
diff --git a/src/Data/Miscellaneous/AppCookie.cs b/src/Data/Miscellaneous/AppCookie.cs new file mode 100644 index 0000000..f355bb6 --- /dev/null +++ b/src/Data/Miscellaneous/AppCookie.cs @@ -0,0 +1,8 @@ +namespace VSH.Data.Miscellaneous; + +public sealed record AppCookie +{ + public string Name { get; init; } + public string Description { get; init; } + public bool Required { get; init; } +}
\ No newline at end of file diff --git a/src/Data/Miscellaneous/AppPath.cs b/src/Data/Miscellaneous/AppPath.cs new file mode 100644 index 0000000..4e17a88 --- /dev/null +++ b/src/Data/Miscellaneous/AppPath.cs @@ -0,0 +1,7 @@ +namespace VSH.Data.Miscellaneous; + +public sealed record AppPath +{ + public string HostPath { get; init; } + public string WebPath { get; init; } +}
\ No newline at end of file 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 diff --git a/src/Data/Miscellaneous/OpenGraphData.cs b/src/Data/Miscellaneous/OpenGraphData.cs new file mode 100644 index 0000000..5bf33fe --- /dev/null +++ b/src/Data/Miscellaneous/OpenGraphData.cs @@ -0,0 +1,12 @@ +namespace VSH.Data.Miscellaneous; + +public class OpenGraphData +{ + public string Type { get; set; } + public string Locale { get; set; } + public string Url { get; set; } + public string Title { get; set; } + public string Description { get; set; } + public string SiteName { get; set; } + public string Image { get; set; } +}
\ No newline at end of file |
