Spaces:
Running
Running
Download FlowAPI.Application/DTOs/Sync/SyncDtos.cs from DanilDrotik/FlowAPI: direct link, hf CLI and curl.
- Browser
- Download file 842 Bytes
-
https://huggingface.co/spaces/DanilDrotik/FlowAPI/resolve/main/FlowAPI.Application/DTOs/Sync/SyncDtos.cs
- Command line
-
hf download hf://spaces/DanilDrotik/FlowAPI/FlowAPI.Application/DTOs/Sync/SyncDtos.cs
-
curl -L -o SyncDtos.cs https://huggingface.co/spaces/DanilDrotik/FlowAPI/resolve/main/FlowAPI.Application/DTOs/Sync/SyncDtos.cs
842 Bytes
| 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; | |
| } | |
| } | |