ff1dfa54ae
* Do a small pass on SPT's config's to reduce warnings and cleanup * Revert * Revert EFT models * Set list as null
59 lines
965 B
C#
59 lines
965 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace SPTarkov.Server.Core.Models.Spt.Config;
|
|
|
|
public record BackupConfig : BaseConfig
|
|
{
|
|
[JsonPropertyName("kind")]
|
|
public override string Kind
|
|
{
|
|
get;
|
|
set;
|
|
} = "spt-backup";
|
|
|
|
[JsonPropertyName("enabled")]
|
|
public required bool Enabled
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[JsonPropertyName("maxBackups")]
|
|
public int MaxBackups
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[JsonPropertyName("directory")]
|
|
public string Directory
|
|
{
|
|
get;
|
|
set;
|
|
} = string.Empty;
|
|
|
|
[JsonPropertyName("backupInterval")]
|
|
public required BackupConfigInterval BackupInterval
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
}
|
|
|
|
public record BackupConfigInterval
|
|
{
|
|
[JsonPropertyName("enabled")]
|
|
public bool Enabled
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[JsonPropertyName("intervalMinutes")]
|
|
public int IntervalMinutes
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
}
|