WholePercentages
This commit is contained in:
@ -9,21 +9,21 @@ public record class Sorting : Properties.ISorting
|
||||
public int DaysDelta { init; get; }
|
||||
public int DistancePermyriad { init; get; }
|
||||
public int Id { init; get; }
|
||||
public int NormalizedRectangle { init; get; }
|
||||
public bool Older { init; get; }
|
||||
public int WholePercentages { init; get; }
|
||||
|
||||
[JsonConstructor]
|
||||
public Sorting(int daysDelta, int distancePermyriad, int id, int normalizedRectangle, bool older)
|
||||
public Sorting(int daysDelta, int distancePermyriad, int id, bool older, int wholePercentages)
|
||||
{
|
||||
DaysDelta = daysDelta;
|
||||
DistancePermyriad = distancePermyriad;
|
||||
Id = id;
|
||||
NormalizedRectangle = normalizedRectangle;
|
||||
WholePercentages = wholePercentages;
|
||||
Older = older;
|
||||
}
|
||||
|
||||
public Sorting(Mapping mapping, MappingFromLocation mappingFromLocation) :
|
||||
this(0, 0, mapping.MappingFromItem.Id, mappingFromLocation.NormalizedRectangle, false)
|
||||
this(0, 0, mapping.MappingFromItem.Id, false, mappingFromLocation.WholePercentages)
|
||||
{ }
|
||||
|
||||
public override string ToString()
|
||||
|
Reference in New Issue
Block a user