Mike Phares a145a89112 Published - Added Mapping shortcut,
added leveled limits, container bug fix,
2022-09-25 20:17:19 -07:00

24 lines
751 B
C#

using System.Text.Json.Serialization;
namespace View_by_Distance.Shared.Models;
public record class SortingContainer : Properties.ISortingContainer
{
public Face Face { init; get; }
public Sorting Sorting { init; get; }
[JsonConstructor]
public SortingContainer(Face face, Sorting sorting)
{
Face = face;
Sorting = sorting;
}
public override string ToString()
{
string result = string.Concat(Face.Mapping?.MappingFromItem.Id, '\t', Face.Mapping?.MappingFromLocation.NormalizedPixelPercentage, '\t', Sorting.Id, '\t', Sorting.NormalizedPixelPercentage, '\t', Sorting.Older, '\t', Sorting.WithinRange, '\t', Sorting.DistancePermyriad, '\t', Sorting.DaysDelta);
return result;
}
}