using OwlCore.AbstractStorage; using OwlCore.Services; using StrixMusic.Sdk.Services; namespace StrixMusic.Cores.LocalFiles.Services { /// /// A container for settings. /// public sealed class LocalFilesCoreSettings : SettingsBase { /// /// Creates a new instance of . /// public LocalFilesCoreSettings(IFolderData folder) : base(folder, NewtonsoftStreamSerializer.Singleton) { } /// /// The folder that the user has chosen to scan for this core instance. /// public string FolderPath { get => GetSetting(() => string.Empty); set => SetSetting(value); } /// /// If true, the app will not initialize the metadata repos and previously scanned data will not be loaded. /// public bool InitWithEmptyMetadataRepos { get => GetSetting(() => false); set => SetSetting(value); } /// /// If the core should use TagLib to scan file metadata. /// public bool ScanWithTagLib { get => GetSetting(() => true); set => SetSetting(value); } /// /// If the core should use file properties to scan metadata. /// public bool ScanWithFileProperties { get => GetSetting(() => false); set => SetSetting(value); } } }