Merge pull request #13 from StewKI/feature-shape-author
Added author to shape model
This commit is contained in:
@@ -36,6 +36,7 @@ public static partial class ShapeMappers
|
||||
return Line.Create(
|
||||
shape.Id.ToString(),
|
||||
shape.WhiteboardId.ToString(),
|
||||
shape.AuthorId.ToString(),
|
||||
shape.PositionX, shape.PositionY,
|
||||
shape.Color,
|
||||
shape.EndPositionX!.Value, shape.EndPositionY!.Value,
|
||||
@@ -47,6 +48,7 @@ public static partial class ShapeMappers
|
||||
return Arrow.Create(
|
||||
shape.Id.ToString(),
|
||||
shape.WhiteboardId.ToString(),
|
||||
shape.AuthorId.ToString(),
|
||||
shape.PositionX, shape.PositionY,
|
||||
shape.Color,
|
||||
shape.EndPositionX!.Value, shape.EndPositionY!.Value,
|
||||
@@ -58,6 +60,7 @@ public static partial class ShapeMappers
|
||||
return TextShape.Create(
|
||||
shape.Id.ToString(),
|
||||
shape.WhiteboardId.ToString(),
|
||||
shape.AuthorId.ToString(),
|
||||
shape.PositionX, shape.PositionY,
|
||||
shape.Color,
|
||||
shape.TextValue!, shape.TextSize!.Value);
|
||||
|
||||
@@ -13,6 +13,9 @@ public class Shape
|
||||
public Guid WhiteboardId { get; set; }
|
||||
public Whiteboard.Whiteboard Whiteboard { get; set; } = null!;
|
||||
|
||||
public Guid AuthorId { get; set; }
|
||||
public User.User Author { get; set; } = null!;
|
||||
|
||||
public ShapeType Type { get; set; }
|
||||
|
||||
public int PositionX { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user