mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-07-29 16:36:00 -04:00
- 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
31 lines
1.0 KiB
C#
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);
|
|
}
|
|
}
|