Can-remap
This commit is contained in:
@ -5,19 +5,25 @@ namespace View_by_Distance.Shared.Models;
|
||||
public record class SortingContainer : Properties.ISortingContainer
|
||||
{
|
||||
|
||||
public Mapping Mapping { init; get; }
|
||||
public Mapping? Question { init; get; }
|
||||
public Sorting Sorting { init; get; }
|
||||
public Mapping Source { init; get; }
|
||||
|
||||
[JsonConstructor]
|
||||
public SortingContainer(Mapping mapping, Sorting sorting)
|
||||
public SortingContainer(Mapping? question, Sorting sorting, Mapping source)
|
||||
{
|
||||
Mapping = mapping;
|
||||
Question = question;
|
||||
Sorting = sorting;
|
||||
Source = source;
|
||||
}
|
||||
|
||||
public SortingContainer(Sorting sorting, Mapping source) :
|
||||
this(null, sorting, source)
|
||||
{ }
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
string result = string.Concat(Mapping.MappingFromItem.Id, '\t', Mapping.MappingFromLocation?.WholePercentages, '\t', Sorting.Id, '\t', Sorting.WholePercentages, '\t', Sorting.Older, '\t', '\t', Sorting.DistancePermyriad, '\t', Sorting.DaysDelta);
|
||||
string result = string.Concat(Source.MappingFromItem.Id, '\t', Source.MappingFromLocation?.WholePercentages, '\t', Sorting.Id, '\t', Sorting.WholePercentages, '\t', Sorting.Older, '\t', '\t', Sorting.DistancePermyriad, '\t', Sorting.DaysDelta);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user