Spaces:
Running
Running
| using FlowAPI.Application.DTOs.TaskNode; | |
| using FlowAPI.Application.DTOs.Edge; | |
| namespace FlowAPI.Application.DTOs.Sync | |
| { | |
| public class SyncRequestDto | |
| { | |
| public List<CreateTaskNodeDto> NewNodes { get; set; } = new(); | |
| public List<UpdateTaskNodeDtoWithId> UpdatedNodes { get; set; } = new(); | |
| public List<Guid> DeletedNodeIds { get; set; } = new(); | |
| public List<CreateEdgeDto> NewEdges { get; set; } = new(); | |
| public List<Guid> DeletedEdgeIds { get; set; } = new(); | |
| } | |
| public class UpdateTaskNodeDtoWithId : UpdateTaskNodeDto | |
| { | |
| public Guid Id { get; set; } | |
| } | |
| public class SyncResponseDto | |
| { | |
| public bool Success { get; set; } | |
| public string Message { get; set; } = string.Empty; | |
| public DateTime ServerTime { get; set; } = DateTime.UtcNow; | |
| } | |
| } | |