Can-remap
This commit is contained in:
@ -6,7 +6,7 @@ namespace View_by_Distance.Shared.Models;
|
||||
public record class Sorting : Properties.ISorting
|
||||
{
|
||||
|
||||
public bool CanReMap { init; get; }
|
||||
public bool? CanReMap { init; get; }
|
||||
public int DaysDelta { init; get; }
|
||||
public int DistancePermyriad { init; get; }
|
||||
public int Id { init; get; }
|
||||
@ -14,7 +14,7 @@ public record class Sorting : Properties.ISorting
|
||||
public int WholePercentages { init; get; }
|
||||
|
||||
[JsonConstructor]
|
||||
public Sorting(bool canReMap, int daysDelta, int distancePermyriad, int id, bool older, int wholePercentages)
|
||||
public Sorting(bool? canReMap, int daysDelta, int distancePermyriad, int id, bool older, int wholePercentages)
|
||||
{
|
||||
CanReMap = canReMap;
|
||||
DaysDelta = daysDelta;
|
||||
@ -25,7 +25,7 @@ public record class Sorting : Properties.ISorting
|
||||
}
|
||||
|
||||
public Sorting(Mapping mapping, MappingFromLocation mappingFromLocation) :
|
||||
this(false, 0, 0, mapping.MappingFromItem.Id, false, mappingFromLocation.WholePercentages)
|
||||
this(null, 0, 0, mapping.MappingFromItem.Id, false, mappingFromLocation.WholePercentages)
|
||||
{ }
|
||||
|
||||
public override string ToString()
|
||||
|
Reference in New Issue
Block a user