Renamed NextcloudSettings to WebDavSettings, as it's more accurate

This commit is contained in:
Deukhoofd 2019-01-15 17:48:48 +01:00
parent 158f3087d6
commit 16e41120bd
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
3 changed files with 4 additions and 4 deletions

View File

@ -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)
{

View File

@ -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();

View File

@ -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; }