Files
Libation/Source/LibationAvalonia/ViewModels/Settings/SettingsVM.cs
John Doe ad61618cc9 Add Audiobookshelf auto-upload integration
- Persist settings: enabled, server URL, API token, library/folder IDs

- Add AudiobookshelfApiService for login, library listing, and multipart upload

- Add UploadToAudiobookshelf post-download processable

- Add settings tab to WinForms and Avalonia with library/folder dropdowns

- Match Avalonia layout to WinForms with aligned columns
2026-07-26 09:58:12 +02:00

31 lines
1.0 KiB
C#

using LibationFileManager;
namespace LibationAvalonia.ViewModels.Settings;
public class SettingsVM
{
public SettingsVM(Configuration config)
{
ImportantSettings = new ImportantSettingsVM(config);
ImportSettings = new ImportSettingsVM(config);
DownloadDecryptSettings = new DownloadDecryptSettingsVM(config);
AudioSettings = new AudioSettingsVM(config);
AudiobookshelfSettings = new AudiobookshelfSettingsVM(config);
}
public ImportantSettingsVM ImportantSettings { get; private set; }
public ImportSettingsVM ImportSettings { get; private set; }
public DownloadDecryptSettingsVM DownloadDecryptSettings { get; private set; }
public AudioSettingsVM AudioSettings { get; private set; }
public AudiobookshelfSettingsVM AudiobookshelfSettings { get; private set; }
public void SaveSettings(Configuration config)
{
ImportantSettings.SaveSettings(config);
ImportSettings.SaveSettings(config);
DownloadDecryptSettings.SaveSettings(config);
AudioSettings.SaveSettings(config);
AudiobookshelfSettings.SaveSettings(config);
}
}