Renamed NextcloudSettings to WebDavSettings, as it's more accurate
This commit is contained in:
parent
158f3087d6
commit
16e41120bd
|
@ -18,7 +18,7 @@ namespace DeukBot4.MessageHandlers
|
||||||
public static class ImageBackupHandler
|
public static class ImageBackupHandler
|
||||||
{
|
{
|
||||||
// ReSharper disable once ClassNeverInstantiated.Global
|
// ReSharper disable once ClassNeverInstantiated.Global
|
||||||
public class NextCloudSettings
|
public class WebDavSettings
|
||||||
{
|
{
|
||||||
public string URL { get; set; }
|
public string URL { get; set; }
|
||||||
public string Username { get; set; }
|
public string Username { get; set; }
|
||||||
|
@ -26,7 +26,7 @@ namespace DeukBot4.MessageHandlers
|
||||||
}
|
}
|
||||||
|
|
||||||
private static List<ServerChannelIDs> _backupChannels = new List<ServerChannelIDs>();
|
private static List<ServerChannelIDs> _backupChannels = new List<ServerChannelIDs>();
|
||||||
public static NextCloudSettings Settings { private get; set; }
|
public static WebDavSettings Settings { private get; set; }
|
||||||
|
|
||||||
public static async Task Backup(SocketMessage message)
|
public static async Task Backup(SocketMessage message)
|
||||||
{
|
{
|
||||||
|
|
|
@ -45,7 +45,7 @@ namespace DeukBot4
|
||||||
TagStorage.BuildTags();
|
TagStorage.BuildTags();
|
||||||
CommandHandler.Build();
|
CommandHandler.Build();
|
||||||
ImageBackupHandler.SetBackupChannels(Settings.BackupChannels);
|
ImageBackupHandler.SetBackupChannels(Settings.BackupChannels);
|
||||||
ImageBackupHandler.Settings = Settings.NextcloudSettings;
|
ImageBackupHandler.Settings = Settings.WebDavSettings;
|
||||||
|
|
||||||
Client = new DiscordSocketClient();
|
Client = new DiscordSocketClient();
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ namespace DeukBot4
|
||||||
[JsonProperty]
|
[JsonProperty]
|
||||||
public List<ServerChannelIDs> BackupChannels { get; private set; }
|
public List<ServerChannelIDs> BackupChannels { get; private set; }
|
||||||
[JsonProperty]
|
[JsonProperty]
|
||||||
public ImageBackupHandler.NextCloudSettings NextcloudSettings { get; private set; }
|
public ImageBackupHandler.WebDavSettings WebDavSettings { get; private set; }
|
||||||
[JsonProperty]
|
[JsonProperty]
|
||||||
public ulong DmChannel { get; private set; }
|
public ulong DmChannel { get; private set; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue