DigiKam4 Archive
Change to only need the one json file and changed AppSettings to not need a binder file Editorconfig for no new line before open braces Nuget package bumps Database lowest-version-history
This commit is contained in:
27
src/ImmichToSlideshow/Models/Settings.cs
Normal file
27
src/ImmichToSlideshow/Models/Settings.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace ImmichToSlideshow.Models;
|
||||
|
||||
public record Settings(int AddDays,
|
||||
string ArchivedTag,
|
||||
string ConnectionString,
|
||||
DigiKam4? DigiKam4,
|
||||
string[] FilterTags,
|
||||
string ImmichUploadDirectory,
|
||||
float LowestVersionHistory,
|
||||
string NotNinePath,
|
||||
string RandomResultsDirectory,
|
||||
string SyncDirectory) {
|
||||
|
||||
public override string ToString() {
|
||||
string result = JsonSerializer.Serialize(this, SettingsSourceGenerationContext.Default.Settings);
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[JsonSourceGenerationOptions(WriteIndented = true)]
|
||||
[JsonSerializable(typeof(Settings))]
|
||||
public partial class SettingsSourceGenerationContext : JsonSerializerContext {
|
||||
}
|
Reference in New Issue
Block a user