Add polygon to DTO convert strategy
This commit is contained in:
23
DataAccess/DTOs/DTOEntities/Shapes/VertexDTO.cs
Normal file
23
DataAccess/DTOs/DTOEntities/Shapes/VertexDTO.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Newtonsoft.Json;
|
||||
using StructureHelperCommon.Models.Shapes;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DataAccess.DTOs
|
||||
{
|
||||
public class VertexDTO : IVertex
|
||||
{
|
||||
[JsonProperty("Id")]
|
||||
public Guid Id { get; }
|
||||
[JsonProperty("Point")]
|
||||
public IPoint2D Point { get; set; }
|
||||
|
||||
public VertexDTO(Guid id)
|
||||
{
|
||||
Id = id;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user