File size: 955 Bytes
b9c7f0e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using FlowAPI.Domain.Enums;

namespace FlowAPI.Application.DTOs.TaskNode
{
    public class CreateTaskNodeDto
    {
        public Guid GraphId { get; set; }
        public string Label { get; set; } = string.Empty;
        public double PosX { get; set; }
        public double PosY { get; set; }
        public NodeState State { get; set; } = NodeState.Pending;
    }

    public class UpdateTaskNodeDto
    {
        public string? Label { get; set; }
        public double? PosX { get; set; }
        public double? PosY { get; set; }
        public NodeState? State { get; set; }
    }

    public class TaskNodeResponseDto
    {
        public Guid Id { get; set; }
        public Guid GraphId { get; set; }
        public string Label { get; set; } = string.Empty;
        public double PosX { get; set; }
        public double PosY { get; set; }
        public NodeState State { get; set; }
        public DateTime CreatedAt { get; set; }
    }
}