forked from equinor/flotilla
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMissionTaskResponse.cs
More file actions
56 lines (41 loc) · 1.48 KB
/
Copy pathMissionTaskResponse.cs
File metadata and controls
56 lines (41 loc) · 1.48 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
using System.Text.Json.Serialization;
using Api.Database.Models;
using Api.Services.Models;
using TaskStatus = Api.Database.Models.TaskStatus;
namespace Api.Controllers.Models
{
public class MissionTaskResponse
{
public string Id { get; set; }
public int TaskOrder { get; set; }
public string? TagId { get; set; }
public string? Description { get; set; }
public TaskStatus Status { get; set; }
public bool IsCompleted { get; set; }
public IList<AnalysisType> AnalysisTypes { get; set; }
public DateTime? StartTime { get; set; }
public DateTime? EndTime { get; set; }
public string? ErrorDescription { get; set; }
public Pose RobotPose { get; set; }
public IsarZoomDescription? IsarZoomDescription { get; set; }
[JsonConstructor]
#nullable disable
public MissionTaskResponse() { }
#nullable enable
public MissionTaskResponse(MissionTask task)
{
Id = task.Id;
TaskOrder = task.TaskOrder;
TagId = task.TagId;
Description = task.Description;
Status = task.Status;
IsCompleted = task.IsCompleted;
AnalysisTypes = task.AnalysisTypes;
StartTime = task.StartTime;
EndTime = task.EndTime;
ErrorDescription = task.ErrorDescription;
RobotPose = task.RobotPose;
IsarZoomDescription = task.IsarZoomDescription;
}
}
}