.config
.vscode
BlurHash
BlurHash.Core
BlurHash.System.Drawing.Common
Compare
Copy-Distinct
Models
Binder
AppSettings.cs
Configuration.cs
Copy-Distinct.csproj
CopyDistinct.cs
Program.cs
appsettings.Development.json
appsettings.json
Date-Group
Delete-By-Distinct
Delete-By-Relative
Distance
Drag-Drop-Explorer
Drag-Drop-Move
Drag-Drop-Search
Drag-Drop-Set-Property-Item
Duplicate-Search
Face
FaceParts
FaceRecognitionDotNet
Instance
Map
Metadata
Metadata-Query
Mirror-Length
Move-By-Id
Offset-Date-Time-Original
PhotoPrism
PrepareForOld
Property
Property-Compare
Rename
Resize
Set-Created-Date
Shared
Tests
TestsWithFaceRecognitionDotNet
ThumbHash
.editorconfig
.gitattributes
.gitignore
.prettierignore
.txt
View-by-Distance-MKLink-Console.sln
package-lock.json
package.json
32 lines
942 B
C#
32 lines
942 B
C#
using System.Text.Json;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace View_by_Distance.Copy.Distinct.Models;
|
|
|
|
public class Configuration
|
|
{
|
|
|
|
protected Property.Models.Configuration _PropertyConfiguration;
|
|
public string[] IgnoreExtensions { init; get; }
|
|
public string PersonBirthdayFormat { init; get; }
|
|
|
|
public Property.Models.Configuration PropertyConfiguration => _PropertyConfiguration;
|
|
|
|
[JsonConstructor]
|
|
public Configuration(
|
|
string[] ignoreExtensions,
|
|
string personBirthdayFormat,
|
|
Property.Models.Configuration propertyConfiguration)
|
|
{
|
|
IgnoreExtensions = ignoreExtensions;
|
|
PersonBirthdayFormat = personBirthdayFormat;
|
|
_PropertyConfiguration = propertyConfiguration;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
string result = JsonSerializer.Serialize(this, new JsonSerializerOptions() { WriteIndented = true });
|
|
return result;
|
|
}
|
|
|
|
} |