whiteboard id added
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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.Sub.Arrow;
|
||||
|
||||
@@ -9,7 +10,7 @@ public class Arrow : Shape
|
||||
public Position EndPosition { get; private set; }
|
||||
public Thickness Thickness { get; private set; }
|
||||
|
||||
public Arrow(ShapeId id, Position position, Color color, Position endPosition, Thickness thickness) : base(id, position, color)
|
||||
public Arrow(ShapeId id, WhiteboardId whiteboardId, Position position, Color color, Position endPosition, Thickness thickness) : base(id, whiteboardId, position, color)
|
||||
{
|
||||
EndPosition = endPosition;
|
||||
Thickness = thickness;
|
||||
|
||||
@@ -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.Sub.Line;
|
||||
|
||||
@@ -9,7 +10,7 @@ public class Line : Shape
|
||||
public Position EndPosition { get; private set; }
|
||||
public Thickness Thickness { get; private set; }
|
||||
|
||||
public Line(ShapeId id, Position position, Color color, Position endPosition, Thickness thickness) : base(id, position, color)
|
||||
public Line(ShapeId id, WhiteboardId whiteboardId, Position position, Color color, Position endPosition, Thickness thickness) : base(id, whiteboardId, position, color)
|
||||
{
|
||||
EndPosition = endPosition;
|
||||
Thickness = thickness;
|
||||
|
||||
@@ -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.Sub.Rectangle;
|
||||
|
||||
@@ -12,8 +13,8 @@ public class Rectangle : Shape
|
||||
|
||||
public Thickness BorderThickness { get; }
|
||||
|
||||
public Rectangle(ShapeId id, Position position, Color color, Position endPosition, Thickness borderThickness)
|
||||
: base(id, position, color)
|
||||
public Rectangle(ShapeId id, WhiteboardId whiteboardId, Position position, Color color, Position endPosition, Thickness borderThickness)
|
||||
: base(id, whiteboardId, position, color)
|
||||
{
|
||||
EndPosition = endPosition;
|
||||
BorderThickness = borderThickness;
|
||||
|
||||
@@ -2,6 +2,7 @@ using System.Drawing;
|
||||
using AipsCore.Domain.Models.Shape.Enums;
|
||||
using AipsCore.Domain.Models.Shape.Sub.TextShape.ValueObjects;
|
||||
using AipsCore.Domain.Models.Shape.ValueObjects;
|
||||
using AipsCore.Domain.Models.Whiteboard.ValueObjects;
|
||||
|
||||
namespace AipsCore.Domain.Models.Shape.Sub.TextShape;
|
||||
|
||||
@@ -11,8 +12,8 @@ public class TextShape : Shape
|
||||
|
||||
public TextShapeSize TextShapeSize { get; private set; }
|
||||
|
||||
public TextShape(ShapeId id, Position position, Color color, TextShapeValue textShapeValue, TextShapeSize textShapeSize)
|
||||
: base(id, position, color)
|
||||
public TextShape(ShapeId id, WhiteboardId whiteboardId, Position position, Color color, TextShapeValue textShapeValue, TextShapeSize textShapeSize)
|
||||
: base(id, whiteboardId, position, color)
|
||||
{
|
||||
TextShapeValue = textShapeValue;
|
||||
TextShapeSize = textShapeSize;
|
||||
|
||||
Reference in New Issue
Block a user