Add polygon to DTO convert strategy

This commit is contained in:
Evgeny Redikultsev
2025-10-19 17:37:17 +05:00
parent 5bf01bcb09
commit ed66da123c
64 changed files with 759 additions and 266 deletions

View File

@@ -24,7 +24,7 @@ namespace StructureHelperCommon.Models.Shapes
{
ProcessCircles(targetObject, sourceCircle);
}
else if (sourceObject is IPolygonShape sourcePolygon)
else if (sourceObject is ILinePolygonShape sourcePolygon)
{
ProcessPolygon(targetObject, sourcePolygon);
}
@@ -34,11 +34,11 @@ namespace StructureHelperCommon.Models.Shapes
}
}
private void ProcessPolygon(IShape targetObject, IPolygonShape sourcePolygon)
private void ProcessPolygon(IShape targetObject, ILinePolygonShape sourcePolygon)
{
if (targetObject is IPolygonShape targetPolygon)
if (targetObject is ILinePolygonShape targetPolygon)
{
var updateLogic = new PolygonShapeUpdateStrategy();
var updateLogic = new LinePolygonShapeUpdateStrategy();
updateLogic.Update(targetPolygon, sourcePolygon);
}
else