using System.Text.Json.Serialization; namespace Elsa.Api.Client.Shared.Models; /// /// Represents designer metadata for an activity. /// public class ActivityDesignerMetadata { /// /// Initializes a new instance of the class. /// [JsonConstructor] public ActivityDesignerMetadata() { } /// /// Initializes a new instance of the class. /// /// The x coordinate of the activity. /// The y coordinate of the activity. /// The width of the activity. /// The height of the activity. public ActivityDesignerMetadata(double x, double y, double width, double height) : this(new Position(x, y), new Size(width, height)) { } /// /// Initializes a new instance of the class. /// /// The position of the activity. /// The size of the activity. public ActivityDesignerMetadata(Position position, Size size) { Position = position; Size = size; } /// /// Gets or sets the position of the activity. /// public Position Position { get; set; } = default!; /// /// Gets or sets the size of the activity. /// public Size Size { get; set; } = default!; }