| | | 1 | | using System.Text.Json.Serialization; |
| | | 2 | | |
| | | 3 | | namespace Elsa.Api.Client.Shared.Models; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// Represents designer metadata for an activity. |
| | | 7 | | /// </summary> |
| | | 8 | | public class ActivityDesignerMetadata |
| | | 9 | | { |
| | | 10 | | /// <summary> |
| | | 11 | | /// Initializes a new instance of the <see cref="ActivityDesignerMetadata"/> class. |
| | | 12 | | /// </summary> |
| | | 13 | | [JsonConstructor] |
| | 0 | 14 | | public ActivityDesignerMetadata() |
| | | 15 | | { |
| | | 16 | | |
| | 0 | 17 | | } |
| | | 18 | | |
| | | 19 | | /// <summary> |
| | | 20 | | /// Initializes a new instance of the <see cref="ActivityDesignerMetadata"/> class. |
| | | 21 | | /// </summary> |
| | | 22 | | /// <param name="x">The x coordinate of the activity.</param> |
| | | 23 | | /// <param name="y">The y coordinate of the activity.</param> |
| | | 24 | | /// <param name="width">The width of the activity.</param> |
| | | 25 | | /// <param name="height">The height of the activity.</param> |
| | 0 | 26 | | public ActivityDesignerMetadata(double x, double y, double width, double height) : this(new(x, y), new(width, height |
| | | 27 | | { |
| | 0 | 28 | | } |
| | | 29 | | |
| | | 30 | | /// <summary> |
| | | 31 | | /// Initializes a new instance of the <see cref="ActivityDesignerMetadata"/> class. |
| | | 32 | | /// </summary> |
| | | 33 | | /// <param name="position">The position of the activity.</param> |
| | | 34 | | /// <param name="size">The size of the activity.</param> |
| | 0 | 35 | | public ActivityDesignerMetadata(Position position, Size size) |
| | | 36 | | { |
| | 0 | 37 | | Position = position; |
| | 0 | 38 | | Size = size; |
| | 0 | 39 | | } |
| | | 40 | | |
| | | 41 | | /// <summary> |
| | | 42 | | /// Gets or sets the position of the activity. |
| | | 43 | | /// </summary> |
| | 0 | 44 | | public Position Position { get; set; } = new(); |
| | | 45 | | |
| | | 46 | | /// <summary> |
| | | 47 | | /// Gets or sets the size of the activity. |
| | | 48 | | /// </summary> |
| | 0 | 49 | | public Size Size { get; set; } = new(); |
| | | 50 | | } |