AutoDispatching/AutoDispathingWork/Domains/Polygon.cs
2023-11-19 17:06:38 +08:00

38 lines
786 B
C#

namespace WorkerService1.Domains;
public class Polygon
{
public Guid? PolygonId { get; set; }
public string Name { get; set; }
public string? UserId { get; set; }
public string? UserName { get; set; }
public List<List<Points>>? Points { get; set; }
public List<string>? RangeCameras { get; set; } = new List<string>();
}
public struct Points
{
public Points(double x, double y)
{
X = x;
Y = y;
}
public double X { get; set; }
public double Y { get; set; }
}
public struct CameraLocation
{
public CameraLocation(string name, double x, double y)
{
Name = name;
X = x;
Y = y;
}
public string Name { get; set; }
public double X { get; set; }
public double Y { get; set; }
}