whiteboard id added

This commit is contained in:
2026-02-08 21:38:23 +01:00
parent 9d95bb5cc3
commit 555368484c
5 changed files with 15 additions and 7 deletions

View File

@@ -1,6 +1,7 @@
using System.Drawing;
using AipsCore.Domain.Models.Shape.Enums;
using AipsCore.Domain.Models.Shape.ValueObjects;
using AipsCore.Domain.Models.Whiteboard.ValueObjects;
namespace AipsCore.Domain.Models.Shape;
@@ -8,16 +9,19 @@ public abstract class Shape
{
public ShapeId Id { get; }
public WhiteboardId WhiteboardId { get; private set; }
public abstract ShapeTypeEnum ShapeType { get; }
public Position Position { get; private set; }
public Color Color { get; private set; }
protected Shape(ShapeId id, Position position, Color color)
protected Shape(ShapeId id, WhiteboardId whiteboardId, Position position, Color color)
{
Id = id;
Position = position;
Color = color;
WhiteboardId = whiteboardId;
}
}