Ready to test
This commit is contained in:
@ -5,6 +5,7 @@ namespace View_by_Distance.Date.Group.Models.Binder;
|
||||
|
||||
public class Configuration
|
||||
{
|
||||
[Display(Name = "By Create Date Shortcut"), Required] public bool? ByCreateDateShortcut { get; set; }
|
||||
[Display(Name = "By Date"), Required] public bool? ByDay { get; set; }
|
||||
[Display(Name = "By Hash"), Required] public bool? ByHash { get; set; }
|
||||
[Display(Name = "By Season"), Required] public bool? BySeason { get; set; }
|
||||
@ -15,6 +16,7 @@ public class Configuration
|
||||
public Configuration()
|
||||
{
|
||||
ByDay = null;
|
||||
ByCreateDateShortcut = null;
|
||||
ByHash = null;
|
||||
BySeason = null;
|
||||
ByWeek = null;
|
||||
|
@ -6,12 +6,14 @@ namespace View_by_Distance.Date.Group.Models;
|
||||
public class Configuration
|
||||
{
|
||||
|
||||
protected readonly bool? _ByCreateDateShortcut;
|
||||
protected readonly bool? _ByDay;
|
||||
protected readonly bool? _ByHash;
|
||||
protected readonly bool? _BySeason;
|
||||
protected readonly bool? _ByWeek;
|
||||
protected readonly bool? _KeepFullPath;
|
||||
protected Property.Models.Configuration? _PropertyConfiguration;
|
||||
public bool? ByCreateDateShortcut => _ByCreateDateShortcut;
|
||||
public bool? ByDay => _ByDay;
|
||||
public bool? ByHash => _ByHash;
|
||||
public bool? BySeason => _BySeason;
|
||||
@ -20,8 +22,9 @@ public class Configuration
|
||||
public Property.Models.Configuration? PropertyConfiguration => _PropertyConfiguration;
|
||||
|
||||
[JsonConstructor]
|
||||
public Configuration(bool? byDay, bool? byHash, bool? bySeason, bool? byWeek, bool? keepFullPath, Property.Models.Configuration? propertyConfiguration)
|
||||
public Configuration(bool? byCreateDateShortcut, bool? byDay, bool? byHash, bool? bySeason, bool? byWeek, bool? keepFullPath, Property.Models.Configuration? propertyConfiguration)
|
||||
{
|
||||
_ByCreateDateShortcut = byCreateDateShortcut;
|
||||
_ByDay = byDay;
|
||||
_ByHash = byHash;
|
||||
_BySeason = bySeason;
|
||||
@ -36,7 +39,7 @@ public class Configuration
|
||||
return result;
|
||||
}
|
||||
|
||||
public void Set(Property.Models.Configuration propertyConfiguration) => _PropertyConfiguration = propertyConfiguration;
|
||||
public void Set(Property.Models.Configuration configuration) => _PropertyConfiguration = configuration;
|
||||
|
||||
public void Update() => _PropertyConfiguration?.Update();
|
||||
|
||||
|
Reference in New Issue
Block a user