Add polygon to DTO convert strategy
This commit is contained in:
21
DataAccess/DTOs/DTOEntities/Shapes/RectangleShapeDTO.cs
Normal file
21
DataAccess/DTOs/DTOEntities/Shapes/RectangleShapeDTO.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Newtonsoft.Json;
|
||||
using StructureHelperCommon.Models.Shapes;
|
||||
|
||||
namespace DataAccess.DTOs
|
||||
{
|
||||
public class RectangleShapeDTO : IRectangleShape
|
||||
{
|
||||
[JsonProperty("Id")]
|
||||
public Guid Id { get;}
|
||||
[JsonProperty("Width")]
|
||||
public double Width { get; set; }
|
||||
[JsonProperty("Height")]
|
||||
public double Height { get; set; }
|
||||
|
||||
public RectangleShapeDTO(Guid id)
|
||||
{
|
||||
Id = id;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user