fix folder structure

This commit is contained in:
schedpas
2022-02-09 14:52:33 +01:00
parent 9fbbc749f3
commit 621184a51b
179 changed files with 10 additions and 10 deletions

View File

@@ -0,0 +1,31 @@
using Newtonsoft.Json.Linq;
using Pilz.Updating.Administration.Discord;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Pilz.Updating.Administration
{
public class UpdateProject
{
public UpdateServerConfig UpdateServerConfig { get; } = new UpdateServerConfig();
public DiscordBotConfig DiscordBotConfig { get; } = new DiscordBotConfig();
public ProxyConfiguration ProxyConfig { get; } = new ProxyConfiguration();
public static UpdateProject Load(string filePath)
{
if (File.Exists(filePath))
return JObject.Parse(File.ReadAllText(filePath)).ToObject<UpdateProject>();
else
return new UpdateProject();
}
public void Save(string filePath)
{
File.WriteAllText(filePath, JObject.FromObject(this).ToString());
}
}
}