Removed R from Container class
This commit is contained in:
@ -7,27 +7,23 @@ public class Container : Properties.IContainer
|
||||
{
|
||||
|
||||
protected readonly int _G;
|
||||
protected readonly int _R;
|
||||
protected readonly List<Item> _Items;
|
||||
protected readonly string _SourceDirectory;
|
||||
public int G => _G;
|
||||
public List<Item> Items => _Items;
|
||||
public int R => _R;
|
||||
public string SourceDirectory => _SourceDirectory;
|
||||
|
||||
[JsonConstructor]
|
||||
public Container(int g, int r, List<Item> items, string sourceDirectory)
|
||||
public Container(int g, List<Item> items, string sourceDirectory)
|
||||
{
|
||||
_G = g;
|
||||
_R = r;
|
||||
_Items = items;
|
||||
_SourceDirectory = sourceDirectory;
|
||||
}
|
||||
|
||||
public Container(int g, int r, string sourceDirectory)
|
||||
public Container(int g, string sourceDirectory)
|
||||
{
|
||||
_G = g;
|
||||
_R = r;
|
||||
_Items = new();
|
||||
_SourceDirectory = sourceDirectory;
|
||||
}
|
||||
|
@ -5,7 +5,6 @@ public interface IContainer
|
||||
|
||||
public int G { get; }
|
||||
public List<Item> Items { get; }
|
||||
public int R { get; }
|
||||
public string SourceDirectory { get; }
|
||||
|
||||
}
|
@ -5,14 +5,6 @@ namespace View_by_Distance.Shared.Models.Stateless.Methods;
|
||||
internal abstract class Mapping
|
||||
{
|
||||
|
||||
internal static double GetDeterministicHashCodeKey(int locationDigits, Models.Item item, Models.Face face)
|
||||
{
|
||||
if (item.Property?.Id is null || item.ImageFileHolder is null || face.Location?.NormalizedPixelPercentage is null)
|
||||
throw new NullReferenceException();
|
||||
double result = IMapping.GetDeterministicHashCodeKeyValue(locationDigits, item.Property.Id.Value, face.Location.NormalizedPixelPercentage.Value);
|
||||
return result;
|
||||
}
|
||||
|
||||
private static void UseKeyValuePairsSaveFaceEncoding(int locationDigits, Dictionary<int, List<Models.Face>> keyValuePairs, string file, int id, int normalizedPixelPercentageValue, double deterministicHashCodeKey, string extensionLowered)
|
||||
{
|
||||
string json;
|
||||
|
Reference in New Issue
Block a user