forked from equinor/flotilla
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRobotResponse.cs
More file actions
66 lines (47 loc) · 1.79 KB
/
Copy pathRobotResponse.cs
File metadata and controls
66 lines (47 loc) · 1.79 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
57
58
59
60
61
62
63
64
65
66
using System.Text.Json.Serialization;
using Api.Database.Models;
namespace Api.Controllers.Models
{
public class RobotResponse
{
public string Id { get; set; }
public string Name { get; set; }
public string IsarId { get; set; }
public string SerialNumber { get; set; }
public Installation CurrentInstallation { get; }
public string? CurrentInspectionAreaId { get; set; }
public IList<DocumentInfo> Documentation { get; set; }
public string Host { get; set; }
public int Port { get; set; }
public bool Deprecated { get; set; }
public RobotStatus Status { get; set; }
public string? CurrentMissionId { get; set; }
public string IsarUri { get; set; }
public RobotType Type { get; set; }
public float? AverageDurationPerTag { get; set; }
public IList<RobotCapabilitiesEnum>? RobotCapabilities { get; set; }
[JsonConstructor]
#nullable disable
public RobotResponse() { }
#nullable enable
public RobotResponse(Robot robot)
{
Id = robot.Id;
Name = robot.Name;
IsarId = robot.IsarId;
SerialNumber = robot.SerialNumber;
CurrentInstallation = robot.CurrentInstallation;
CurrentInspectionAreaId = robot.CurrentInspectionAreaId;
Documentation = robot.Documentation;
Host = robot.Host;
Port = robot.Port;
Deprecated = robot.Deprecated;
Status = robot.Status;
CurrentMissionId = robot.CurrentMissionId;
IsarUri = robot.IsarUri;
RobotCapabilities = robot.RobotCapabilities;
Type = robot.Type;
AverageDurationPerTag = robot.AverageDurationPerTag;
}
}
}