1.1.0 - install + stat gen
This commit is contained in:
@@ -11,6 +11,11 @@ namespace MxFilterGen2.JSON
|
||||
{
|
||||
internal class SETTINGS
|
||||
{
|
||||
public string dbHost { get; set; }
|
||||
public string dbPort { get; set; }
|
||||
public string dbName { get; set; }
|
||||
public string dbUser { get; set; }
|
||||
public string dbPass { get; set; }
|
||||
public string Name { get; set; }
|
||||
public bool Install { get; set; }
|
||||
public List<string> Types { get; set; }
|
||||
@@ -20,6 +25,11 @@ namespace MxFilterGen2.JSON
|
||||
|
||||
class settings
|
||||
{
|
||||
public static string GetdbHost() => JsonConvert.DeserializeObject<SETTINGS>(File.ReadAllText("settings.json")).dbHost;
|
||||
public static string GetdbPort() => JsonConvert.DeserializeObject<SETTINGS>(File.ReadAllText("settings.json")).dbPort;
|
||||
public static string GetdbName() => JsonConvert.DeserializeObject<SETTINGS>(File.ReadAllText("settings.json")).dbName;
|
||||
public static string GetdbUser() => JsonConvert.DeserializeObject<SETTINGS>(File.ReadAllText("settings.json")).dbUser;
|
||||
public static string GetdbPass() => JsonConvert.DeserializeObject<SETTINGS>(File.ReadAllText("settings.json")).dbPass;
|
||||
internal static string GetName()
|
||||
{
|
||||
SETTINGS j = JsonConvert.DeserializeObject<SETTINGS>(File.ReadAllText($"settings.json"));
|
||||
|
||||
Reference in New Issue
Block a user