private record
This commit is contained in:
@ -60,7 +60,7 @@ public class AppSettings
|
||||
return result;
|
||||
}
|
||||
|
||||
public static Models.AppSettings Get(IConfigurationRoot configurationRoot)
|
||||
internal static Models.AppSettings Get(IConfigurationRoot configurationRoot)
|
||||
{
|
||||
Models.AppSettings result;
|
||||
#pragma warning disable IL3050, IL2026
|
||||
|
@ -3,7 +3,7 @@ using System.Text.Json.Serialization;
|
||||
|
||||
namespace File_Folder_Helper.Models;
|
||||
|
||||
public record Birth(DateOnly? Date,
|
||||
internal record Birth(DateOnly? Date,
|
||||
string? Note,
|
||||
List<string> Continue)
|
||||
{
|
||||
|
@ -3,7 +3,7 @@ using System.Text.Json.Serialization;
|
||||
|
||||
namespace File_Folder_Helper.Models;
|
||||
|
||||
public record Change(DateOnly? Date,
|
||||
internal record Change(DateOnly? Date,
|
||||
string? Note,
|
||||
List<string> Continue)
|
||||
{
|
||||
|
@ -3,7 +3,7 @@ using System.Text.Json.Serialization;
|
||||
|
||||
namespace File_Folder_Helper.Models;
|
||||
|
||||
public record Comment([property: JsonPropertyName("workItemId")] int? WorkItemId,
|
||||
internal record Comment([property: JsonPropertyName("workItemId")] int? WorkItemId,
|
||||
[property: JsonPropertyName("id")] int? Id,
|
||||
[property: JsonPropertyName("version")] int? Version,
|
||||
[property: JsonPropertyName("text")] string? Text,
|
||||
|
@ -4,7 +4,7 @@ using System.Text.Json.Serialization;
|
||||
|
||||
namespace File_Folder_Helper.Models;
|
||||
|
||||
public record CreatedBy([property: JsonPropertyName("displayName")] string? DisplayName,
|
||||
internal record CreatedBy([property: JsonPropertyName("displayName")] string? DisplayName,
|
||||
[property: JsonPropertyName("url")] string? Url,
|
||||
[property: JsonPropertyName("_links")] Links Links,
|
||||
[property: JsonPropertyName("id")] string? Id,
|
||||
|
@ -3,7 +3,7 @@ using System.Text.Json.Serialization;
|
||||
|
||||
namespace File_Folder_Helper.Models;
|
||||
|
||||
public record Death(bool? Is,
|
||||
internal record Death(bool? Is,
|
||||
DateOnly? Date,
|
||||
string? Note,
|
||||
List<string> Continue)
|
||||
|
@ -1,20 +1,20 @@
|
||||
using System.Text.Json.Serialization;
|
||||
// using System.Text.Json.Serialization;
|
||||
|
||||
namespace File_Folder_Helper.Models;
|
||||
// namespace File_Folder_Helper.Models;
|
||||
|
||||
public record Host([property: JsonPropertyName("a")] string? Id,
|
||||
[property: JsonPropertyName("b")] string? Colon,
|
||||
[property: JsonPropertyName("c")] string? Hyphen,
|
||||
[property: JsonPropertyName("d")] string? Line,
|
||||
[property: JsonPropertyName("e")] string? Count,
|
||||
[property: JsonPropertyName("f")] string? Segments,
|
||||
[property: JsonPropertyName("g")] string? Type,
|
||||
[property: JsonPropertyName("h")] string? Device,
|
||||
[property: JsonPropertyName("i")] string? Name,
|
||||
[property: JsonPropertyName("j")] string? Location);
|
||||
// internal record Host([property: JsonPropertyName("a")] string? Id,
|
||||
// [property: JsonPropertyName("b")] string? Colon,
|
||||
// [property: JsonPropertyName("c")] string? Hyphen,
|
||||
// [property: JsonPropertyName("d")] string? Line,
|
||||
// [property: JsonPropertyName("e")] string? Count,
|
||||
// [property: JsonPropertyName("f")] string? Segments,
|
||||
// [property: JsonPropertyName("g")] string? Type,
|
||||
// [property: JsonPropertyName("h")] string? Device,
|
||||
// [property: JsonPropertyName("i")] string? Name,
|
||||
// [property: JsonPropertyName("j")] string? Location);
|
||||
|
||||
[JsonSourceGenerationOptions(WriteIndented = true, AllowTrailingCommas = true)]
|
||||
[JsonSerializable(typeof(Host[]))]
|
||||
public partial class HostSourceGenerationContext : JsonSerializerContext
|
||||
{
|
||||
}
|
||||
// [JsonSourceGenerationOptions(WriteIndented = true, AllowTrailingCommas = true)]
|
||||
// [JsonSerializable(typeof(Host[]))]
|
||||
// internal partial class HostsSourceGenerationContext : JsonSerializerContext
|
||||
// {
|
||||
// }
|
@ -4,7 +4,7 @@ using System.Text.Json.Serialization;
|
||||
|
||||
namespace File_Folder_Helper.Models;
|
||||
|
||||
public record ModifiedBy([property: JsonPropertyName("displayName")] string? DisplayName,
|
||||
internal record ModifiedBy([property: JsonPropertyName("displayName")] string? DisplayName,
|
||||
[property: JsonPropertyName("url")] string? Url,
|
||||
[property: JsonPropertyName("_links")] Links Links,
|
||||
[property: JsonPropertyName("id")] string? Id,
|
||||
|
@ -3,7 +3,7 @@ using System.Text.Json.Serialization;
|
||||
|
||||
namespace File_Folder_Helper.Models;
|
||||
|
||||
public record Name(string? ForwardSlashFull,
|
||||
internal record Name(string? ForwardSlashFull,
|
||||
string? Given,
|
||||
string? Sur,
|
||||
string? Nick,
|
||||
|
@ -3,7 +3,7 @@ using System.Text.Json.Serialization;
|
||||
|
||||
namespace File_Folder_Helper.Models;
|
||||
|
||||
public record NginxFileSystem(string Name,
|
||||
internal record NginxFileSystem(string Name,
|
||||
string Type,
|
||||
string MTime,
|
||||
float Size)
|
||||
|
@ -2,7 +2,7 @@ using System.Text.Json.Serialization;
|
||||
|
||||
namespace File_Folder_Helper.Models;
|
||||
|
||||
public record PackageJson([property: JsonPropertyName("name")] string Name,
|
||||
internal record PackageJson([property: JsonPropertyName("name")] string Name,
|
||||
[property: JsonPropertyName("time")] Dictionary<string, DateTime> Times,
|
||||
[property: JsonPropertyName("_rev")] string Rev,
|
||||
[property: JsonPropertyName("_id")] string Id);
|
||||
|
@ -3,7 +3,7 @@ using System.Text.Json.Serialization;
|
||||
|
||||
namespace File_Folder_Helper.Models;
|
||||
|
||||
public record Person(long Id,
|
||||
internal record Person(long Id,
|
||||
Name? Name,
|
||||
char? Sex,
|
||||
string? UId,
|
||||
|
@ -3,7 +3,7 @@ using System.Text.Json.Serialization;
|
||||
|
||||
namespace File_Folder_Helper.Models;
|
||||
|
||||
public record VSCodeTask([property: JsonPropertyName("label")] string? Label,
|
||||
internal record VSCodeTask([property: JsonPropertyName("label")] string? Label,
|
||||
[property: JsonPropertyName("command")] string? Command,
|
||||
[property: JsonPropertyName("type")] string? Type,
|
||||
[property: JsonPropertyName("args")] IReadOnlyList<string>? Arguments,
|
||||
@ -24,7 +24,7 @@ internal partial class VSCodeTaskSourceGenerationContext : JsonSerializerContext
|
||||
{
|
||||
}
|
||||
|
||||
public record VSCodeTasks([property: JsonPropertyName("version")] string? Version,
|
||||
internal record VSCodeTasks([property: JsonPropertyName("version")] string? Version,
|
||||
[property: JsonPropertyName("tasks")] VSCodeTask[]? TaskCollection)
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user