Files
SPT-Server-Build/Libraries/SPTarkov.Server.Core/Models/Spt/Config/BackupConfig.cs
T
2025-06-25 15:16:38 +01:00

34 lines
886 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
{
[JsonExtensionData]
public Dictionary<string, object>? ExtensionData { get; set; }
[JsonPropertyName("enabled")]
public bool Enabled { get; set; }
[JsonPropertyName("intervalMinutes")]
public int IntervalMinutes { get; set; }
}