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
|
||||
{
|
||||
// ReSharper disable once ClassNeverInstantiated.Global
|
||||
public class NextCloudSettings
|
||||
public class WebDavSettings
|
||||
{
|
||||
public string URL { get; set; }
|
||||
public string Username { get; set; }
|
||||
|
@ -26,7 +26,7 @@ namespace DeukBot4.MessageHandlers
|
|||
}
|
||||
|
||||
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)
|
||||
{
|
||||
|
|
|
@ -45,7 +45,7 @@ namespace DeukBot4
|
|||
TagStorage.BuildTags();
|
||||
CommandHandler.Build();
|
||||
ImageBackupHandler.SetBackupChannels(Settings.BackupChannels);
|
||||
ImageBackupHandler.Settings = Settings.NextcloudSettings;
|
||||
ImageBackupHandler.Settings = Settings.WebDavSettings;
|
||||
|
||||
Client = new DiscordSocketClient();
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ namespace DeukBot4
|
|||
[JsonProperty]
|
||||
public List<ServerChannelIDs> BackupChannels { get; private set; }
|
||||
[JsonProperty]
|
||||
public ImageBackupHandler.NextCloudSettings NextcloudSettings { get; private set; }
|
||||
public ImageBackupHandler.WebDavSettings WebDavSettings { get; private set; }
|
||||
[JsonProperty]
|
||||
public ulong DmChannel { get; private set; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue