-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig.cs
More file actions
39 lines (29 loc) · 898 Bytes
/
Config.cs
File metadata and controls
39 lines (29 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using Newtonsoft.Json;
namespace CS2DatabaseCleanup;
public class DatabaseConfig
{
[JsonProperty("Host")]
public string Host { get; set; } = "localhost";
[JsonProperty("Port")]
public int Port { get; set; } = 3306;
[JsonProperty("Username")]
public string Username { get; set; } = "";
[JsonProperty("Password")]
public string Password { get; set; } = "";
[JsonProperty("DatabaseName")]
public string DatabaseName { get; set; } = "";
}
public class CleanupRule
{
[JsonProperty("Rule")]
public string Rule { get; set; } = "";
[JsonProperty("Queries")]
public List<string> Queries { get; set; } = new();
}
public class PluginConfig
{
[JsonProperty("Database")]
public DatabaseConfig Database { get; set; } = new();
[JsonProperty("Rules")]
public List<CleanupRule> Rules { get; set; } = new();
}