implement

This commit is contained in:
2026-02-09 21:21:17 +01:00
parent ff18d7b913
commit 2032a74ecd
14 changed files with 441 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ namespace AipsCore.Domain.Models.Shape;
public abstract class Shape
{
public ShapeId Id { get; }
public ShapeId Id { get; init; }
public WhiteboardId WhiteboardId { get; private set; }
@@ -24,4 +24,16 @@ public abstract class Shape
Color = color;
WhiteboardId = whiteboardId;
}
protected Shape(
string id,
string whiteboardId,
int positionX, int positionY,
string color)
{
Id = new ShapeId(id);
Position = new Position(positionX, positionY);
Color = new Color(color);
WhiteboardId = new WhiteboardId(whiteboardId);
}
}