39 lines
832 B
C#
39 lines
832 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 string? PhoneNumber { 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; }
|
|
}
|
|
|