|
| 1 | +using System; |
| 2 | + |
| 3 | +namespace Resgrid.Model |
| 4 | +{ |
| 5 | + /// <summary> |
| 6 | + /// List-card projection of an incident command for the IC app's incident list: identity, lifecycle timing, |
| 7 | + /// resolved commander name, locations, and active resource counts. Not persisted (composed by the service). |
| 8 | + /// </summary> |
| 9 | + public class IncidentCommandSummary |
| 10 | + { |
| 11 | + public string IncidentCommandId { get; set; } |
| 12 | + |
| 13 | + public int DepartmentId { get; set; } |
| 14 | + |
| 15 | + public int CallId { get; set; } |
| 16 | + |
| 17 | + /// <summary>Commander-supplied incident name; null when unnamed (UIs fall back to the call name).</summary> |
| 18 | + public string Name { get; set; } |
| 19 | + |
| 20 | + public string CallName { get; set; } |
| 21 | + |
| 22 | + public string CallNumber { get; set; } |
| 23 | + |
| 24 | + public string CallAddress { get; set; } |
| 25 | + |
| 26 | + /// <summary>Maps to <see cref="IncidentCommandStatus"/>.</summary> |
| 27 | + public int Status { get; set; } |
| 28 | + |
| 29 | + public DateTime EstablishedOn { get; set; } |
| 30 | + |
| 31 | + public DateTime? ClosedOn { get; set; } |
| 32 | + |
| 33 | + public string CommanderUserId { get; set; } |
| 34 | + |
| 35 | + /// <summary>Resolved commander full name (falls back to the user id when the profile is unavailable).</summary> |
| 36 | + public string CommanderName { get; set; } |
| 37 | + |
| 38 | + public string CommandPostLocationText { get; set; } |
| 39 | + |
| 40 | + public string CommandPostLatitude { get; set; } |
| 41 | + |
| 42 | + public string CommandPostLongitude { get; set; } |
| 43 | + |
| 44 | + /// <summary>Active (unreleased) personnel assignments placed in a lane or staging.</summary> |
| 45 | + public int AssignedPersonnelCount { get; set; } |
| 46 | + |
| 47 | + /// <summary>Active (unreleased) unit assignments placed in a lane or staging.</summary> |
| 48 | + public int AssignedUnitCount { get; set; } |
| 49 | + } |
| 50 | + |
| 51 | + /// <summary> |
| 52 | + /// Field bag for <c>IIncidentCommandService.UpdateCommandInfoAsync</c>. Null members are left unchanged; |
| 53 | + /// an empty string clears the stored value. Any location whose text is set while its coordinates are |
| 54 | + /// blank is geocoded server-side on save. |
| 55 | + /// </summary> |
| 56 | + public class IncidentCommandInfoUpdate |
| 57 | + { |
| 58 | + public string Name { get; set; } |
| 59 | + |
| 60 | + /// <summary>Corrected incident start time (UTC); null leaves the original EstablishedOn.</summary> |
| 61 | + public DateTime? EstablishedOn { get; set; } |
| 62 | + |
| 63 | + public DateTime? EstimatedEndOn { get; set; } |
| 64 | + |
| 65 | + /// <summary>When true, a null <see cref="EstimatedEndOn"/> clears the stored value instead of leaving it.</summary> |
| 66 | + public bool ClearEstimatedEndOn { get; set; } |
| 67 | + |
| 68 | + public string ImportantInformation { get; set; } |
| 69 | + |
| 70 | + public int? IcsLevel { get; set; } |
| 71 | + |
| 72 | + public string CommandPostLocationText { get; set; } |
| 73 | + |
| 74 | + public string CommandPostLatitude { get; set; } |
| 75 | + |
| 76 | + public string CommandPostLongitude { get; set; } |
| 77 | + |
| 78 | + public string StagingLocationText { get; set; } |
| 79 | + |
| 80 | + public string StagingLatitude { get; set; } |
| 81 | + |
| 82 | + public string StagingLongitude { get; set; } |
| 83 | + |
| 84 | + public string RehabLocationText { get; set; } |
| 85 | + |
| 86 | + public string RehabLatitude { get; set; } |
| 87 | + |
| 88 | + public string RehabLongitude { get; set; } |
| 89 | + } |
| 90 | +} |
0 commit comments