.NET Format Style Fixes
This commit is contained in:
@@ -5,39 +5,19 @@ namespace SPTarkov.Server.Core.Models.Spt.Config;
|
||||
public record BackupConfig : BaseConfig
|
||||
{
|
||||
[JsonPropertyName("kind")]
|
||||
public override string Kind
|
||||
{
|
||||
get;
|
||||
set;
|
||||
} = "spt-backup";
|
||||
public override string Kind { get; set; } = "spt-backup";
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public required bool Enabled
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public required bool Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("maxBackups")]
|
||||
public int MaxBackups
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public int MaxBackups { get; set; }
|
||||
|
||||
[JsonPropertyName("directory")]
|
||||
public string Directory
|
||||
{
|
||||
get;
|
||||
set;
|
||||
} = string.Empty;
|
||||
public string Directory { get; set; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("backupInterval")]
|
||||
public required BackupConfigInterval BackupInterval
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public required BackupConfigInterval BackupInterval { get; set; }
|
||||
}
|
||||
|
||||
public record BackupConfigInterval
|
||||
@@ -46,16 +26,8 @@ public record BackupConfigInterval
|
||||
public Dictionary<string, object> ExtensionData { get; set; }
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool Enabled
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public bool Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("intervalMinutes")]
|
||||
public int IntervalMinutes
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public int IntervalMinutes { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user