2023-04-13 19:18:25 +02:00
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
|
|
namespace Pathfinding;
|
|
|
|
|
|
|
|
public class PathResult
|
|
|
|
{
|
|
|
|
[JsonInclude]public TimeSpan calcTime;
|
|
|
|
[JsonInclude]public List<PathNode> pathNodes;
|
2023-04-21 11:40:26 +02:00
|
|
|
[JsonInclude]public double distance;
|
|
|
|
[JsonInclude]public double weight;
|
2023-04-13 19:18:25 +02:00
|
|
|
|
2023-04-20 19:37:34 +02:00
|
|
|
[JsonConstructor]
|
2023-04-21 11:40:26 +02:00
|
|
|
public PathResult(TimeSpan calcTime, List<PathNode> pathNodes, double distance, double weight)
|
2023-04-13 19:18:25 +02:00
|
|
|
{
|
|
|
|
this.calcTime = calcTime;
|
|
|
|
this.pathNodes = pathNodes;
|
2023-04-21 11:40:26 +02:00
|
|
|
this.distance = distance;
|
|
|
|
this.weight = weight;
|
2023-04-13 19:18:25 +02:00
|
|
|
}
|
|
|
|
}
|