Re-write
This commit is contained in:
13
Shared/Models/Properties/IClosest.cs
Normal file
13
Shared/Models/Properties/IClosest.cs
Normal file
@ -0,0 +1,13 @@
|
||||
namespace View_by_Distance.Shared.Models.Properties;
|
||||
|
||||
public interface IClosest
|
||||
{
|
||||
|
||||
public double? Average { get; }
|
||||
public int? NormalizedPixelPercentage { get; }
|
||||
public bool? IsWrongYear { get; }
|
||||
public double? Minimum { get; }
|
||||
public DateTime MinimumDateTime { get; }
|
||||
public PersonBirthday? PersonBirthday { get; }
|
||||
|
||||
}
|
@ -1,45 +0,0 @@
|
||||
// using View_by_Distance.Shared.Models.Methods;
|
||||
|
||||
// namespace View_by_Distance.Shared.Models.Properties;
|
||||
|
||||
// public interface IConfiguration
|
||||
// {
|
||||
|
||||
// public bool? checkJsonForDistanceResults;
|
||||
// public string[] loadOrCreateThenSaveDistanceResultsForOutputResolutions;
|
||||
// public string[] loadOrCreateThenSaveImageFacesResultsForOutputResolutions;
|
||||
// public bool? loadOrCreateThenSaveIndex;
|
||||
// public bool? overrideForFaceImages;
|
||||
// public bool? overrideForFaceLandmarkImages;
|
||||
// public bool? overrideForResizeImages;
|
||||
// public bool? propertiesChangedForDistance;
|
||||
// public bool? propertiesChangedForFaces;
|
||||
// public bool? propertiesChangedForIndex;
|
||||
// public bool? propertiesChangedForMetadata;
|
||||
// public bool? propertiesChangedForProperty;
|
||||
// public bool? propertiesChangedForResize;
|
||||
// public bool? reverse;
|
||||
// public bool? saveFullYearOfRandomFiles;
|
||||
// public bool? testDistanceResults;
|
||||
// public int? distanceFactor;
|
||||
// public int? locationConfidenceFactor;
|
||||
// public int? mappedMaxIndex;
|
||||
// public int? maxImagesInDirectoryForTopLevelFirstPass;
|
||||
// public int? maxItemsInDistanceCollection;
|
||||
// public int? numberOfJitters;
|
||||
// public int? outputQuality;
|
||||
// public int? paddingLoops;
|
||||
// public string dateGroup;
|
||||
// public string modelDirectory;
|
||||
// public string modelName;
|
||||
// public string outputExtension;
|
||||
// public string predictorModelName;
|
||||
// public string rootDirectory;
|
||||
// public string[] ignoreExtensions;
|
||||
// public string[] ignoreRelativePaths;
|
||||
// public string[] mixedYearRelativePaths;
|
||||
// public string[] outputResolutions;
|
||||
// public string[] saveFaceLandmarkForOutputResolutions;
|
||||
// public string[] validResolutions;
|
||||
|
||||
// }
|
11
Shared/Models/Properties/IContainer.cs
Normal file
11
Shared/Models/Properties/IContainer.cs
Normal file
@ -0,0 +1,11 @@
|
||||
namespace View_by_Distance.Shared.Models.Properties;
|
||||
|
||||
public interface IContainer
|
||||
{
|
||||
|
||||
public int G { get; }
|
||||
public List<Item> Items { get; }
|
||||
public int R { get; }
|
||||
public string SourceDirectory { get; }
|
||||
|
||||
}
|
@ -3,10 +3,4 @@ namespace View_by_Distance.Shared.Models.Properties;
|
||||
public interface IDirectoryFileSystem
|
||||
{
|
||||
|
||||
// protected new string ClassName { get; }
|
||||
// protected new string DataDisplayFileName { get; }
|
||||
// protected new string DataFullFileName { get; }
|
||||
// protected new string Display { get; }
|
||||
// protected new DateTime LastModified { get; }
|
||||
|
||||
}
|
14
Shared/Models/Properties/IDistanceHolder.cs
Normal file
14
Shared/Models/Properties/IDistanceHolder.cs
Normal file
@ -0,0 +1,14 @@
|
||||
namespace View_by_Distance.Shared.Models.Properties;
|
||||
|
||||
public interface IDistanceHolder
|
||||
{
|
||||
|
||||
public Face Face { init; get; }
|
||||
public FileHolder FileHolder { init; get; }
|
||||
public int Id { init; get; }
|
||||
public string JSONDirectory { init; get; }
|
||||
public Location? Location { init; get; }
|
||||
public string TSVDirectory { init; get; }
|
||||
public double Sort { get; set; }
|
||||
|
||||
}
|
@ -3,16 +3,12 @@ namespace View_by_Distance.Shared.Models.Properties;
|
||||
public interface IFace
|
||||
{
|
||||
|
||||
#pragma warning disable IDE1006
|
||||
public double? α { get; }
|
||||
#pragma warning restore IDE1006
|
||||
public DateTime DateTime { get; }
|
||||
public FaceEncoding FaceEncoding { get; }
|
||||
public Dictionary<string, FacePoint[]> FaceLandmarks { get; }
|
||||
public Location Location { get; }
|
||||
public FaceEncoding? FaceEncoding { get; }
|
||||
public Dictionary<Stateless.FacePart, FacePoint[]>? FaceParts { get; }
|
||||
public Location? Location { get; }
|
||||
public int? LocationIndex { get; }
|
||||
public OutputResolution OutputResolution { get; }
|
||||
public bool Populated { get; }
|
||||
public OutputResolution? OutputResolution { get; }
|
||||
public string RelativePath { get; }
|
||||
|
||||
}
|
16
Shared/Models/Properties/IFileHolder.cs
Normal file
16
Shared/Models/Properties/IFileHolder.cs
Normal file
@ -0,0 +1,16 @@
|
||||
namespace View_by_Distance.Shared.Models.Properties;
|
||||
|
||||
public interface IFileHolder
|
||||
{
|
||||
|
||||
public DateTime CreationTime { get; }
|
||||
public string? DirectoryName { get; }
|
||||
public bool Exists { get; }
|
||||
public string ExtensionLowered { get; }
|
||||
public string FullName { get; }
|
||||
public DateTime LastWriteTime { get; }
|
||||
public long? Length { get; }
|
||||
public string Name { get; }
|
||||
public string NameWithoutExtension { get; }
|
||||
|
||||
}
|
20
Shared/Models/Properties/IItem.cs
Normal file
20
Shared/Models/Properties/IItem.cs
Normal file
@ -0,0 +1,20 @@
|
||||
namespace View_by_Distance.Shared.Models.Properties;
|
||||
|
||||
public interface IItem
|
||||
{
|
||||
|
||||
public bool? Abandoned { get; }
|
||||
public bool? Changed { get; }
|
||||
public List<Closest> Closest { get; }
|
||||
public List<Face> Faces { get; }
|
||||
public FileHolder? ImageFileHolder { get; }
|
||||
public bool? Moved { get; }
|
||||
public bool? NoJson { get; }
|
||||
public List<Named> Named { get; }
|
||||
public Property? Property { get; }
|
||||
public string RelativePath { get; }
|
||||
public FileHolder? ResizedFileHolder { get; }
|
||||
public string SourceDirectoryFile { get; }
|
||||
public bool ValidImageFormatExtension { get; }
|
||||
|
||||
}
|
11
Shared/Models/Properties/INamed.cs
Normal file
11
Shared/Models/Properties/INamed.cs
Normal file
@ -0,0 +1,11 @@
|
||||
namespace View_by_Distance.Shared.Models.Properties;
|
||||
|
||||
public interface INamed
|
||||
{
|
||||
|
||||
public bool? IsWrongYear { get; }
|
||||
public DateTime MinimumDateTime { get; }
|
||||
public int? NormalizedPixelPercentage { get; }
|
||||
public PersonBirthday? PersonBirthday { get; }
|
||||
|
||||
}
|
6
Shared/Models/Properties/IPath.cs
Normal file
6
Shared/Models/Properties/IPath.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace View_by_Distance.Shared.Models.Properties;
|
||||
|
||||
public interface IPath
|
||||
{
|
||||
|
||||
}
|
Reference in New Issue
Block a user