Ready to test DownloadFile
DirectoryDictionary Add http file .7-Question JustMediaDate CombinedEnumAndIndex
This commit is contained in:
@ -20,16 +20,16 @@ public record AppSettings(ResultSettings ResultSettings,
|
||||
|
||||
private static void Verify(AppSettings appSettings)
|
||||
{
|
||||
if (appSettings.DistanceSettings.RangeDaysDeltaTolerance.Length != 3)
|
||||
if (appSettings.DistanceSettings.RangeDaysDeltaTolerance.Length is not 3 and not 6)
|
||||
throw new NullReferenceException(nameof(appSettings.DistanceSettings.RangeDaysDeltaTolerance));
|
||||
if (appSettings.DistanceSettings.RangeDistanceTolerance.Length != 3)
|
||||
if (appSettings.DistanceSettings.RangeDistanceTolerance.Length is not 3 and not 6)
|
||||
throw new NullReferenceException(nameof(appSettings.DistanceSettings.RangeDistanceTolerance));
|
||||
if (appSettings.DistanceSettings.RangeFaceAreaTolerance.Length != 3)
|
||||
if (appSettings.DistanceSettings.RangeFaceAreaTolerance.Length is not 3 and not 6)
|
||||
throw new NullReferenceException(nameof(appSettings.DistanceSettings.RangeFaceAreaTolerance));
|
||||
if (appSettings.DistanceSettings.RangeFaceConfidence.Length != 3)
|
||||
if (appSettings.DistanceSettings.RangeFaceConfidence.Length is not 3 and not 6)
|
||||
throw new NullReferenceException(nameof(appSettings.DistanceSettings.RangeFaceConfidence));
|
||||
_ = DateTime.Now.AddDays(-appSettings.DistanceSettings.RangeDaysDeltaTolerance[1]);
|
||||
if (appSettings.DistanceSettings.SaveSortingWithoutPerson && appSettings.PeopleSettings.JLinks.Length > 0)
|
||||
if (appSettings.DistanceSettings.SaveSortingWithoutPerson && appSettings.PeopleSettings.JLinks.Where(l => !string.IsNullOrEmpty(l)).Any())
|
||||
throw new Exception("Settings has SaveSortingWithoutPerson and JLinks!");
|
||||
if (appSettings.DistanceSettings.SaveSortingWithoutPerson && !string.IsNullOrEmpty(appSettings.DistanceSettings.FocusModel))
|
||||
throw new Exception("Settings has SaveSortingWithoutPerson and FocusModel!");
|
||||
|
Reference in New Issue
Block a user