addded more types, some are unfinished, ill come back to these tomorrow

This commit is contained in:
CWX
2025-01-06 00:32:55 +00:00
parent 529b091029
commit 2f997f6a85
53 changed files with 1938 additions and 12 deletions
+30
View File
@@ -0,0 +1,30 @@
namespace Types.Models.Spt.Config;
using System.Text.Json.Serialization;
public class BackupConfig : BaseConfig
{
[JsonPropertyName("kind")]
public string Kind { get; set; } = "spt-backup";
[JsonPropertyName("enabled")]
public bool Enabled { get; set; }
[JsonPropertyName("maxBackups")]
public int MaxBackups { get; set; }
[JsonPropertyName("directory")]
public string Directory { get; set; }
[JsonPropertyName("backupInterval")]
public BackupConfigInterval BackupInterval { get; set; }
}
public class BackupConfigInterval
{
[JsonPropertyName("enabled")]
public bool Enabled { get; set; }
[JsonPropertyName("intervalMinutes")]
public int IntervalMinutes { get; set; }
}