Skip to content

Commit 869e647

Browse files
committed
Update data related to hazard info
1 parent 0a7b230 commit 869e647

1 file changed

Lines changed: 27 additions & 6 deletions

File tree

TwoWeeksReady.Common/Hazards/HazardBaseInfo.cs

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,33 @@ public class HazardBaseInfo
1111
[JsonProperty(PropertyName = "description")]
1212
public string Description { get; set; }
1313

14-
[JsonProperty(PropertyName = "photo")]
15-
public string Photo { get; set; } // URL or byte[] ?
14+
[JsonProperty(PropertyName = "iconUrl")]
15+
public string IconUrl {get; set;}
1616

17-
[JsonProperty(PropertyName = "directive")]
18-
public string Directive { get; set; }
17+
/// <summary>
18+
/// URL of image or video describing the hazard
19+
/// </summary>
20+
[JsonProperty(PropertyName = "mediaUrl")]
21+
public string MediaUrl { get; set; }
1922

20-
[JsonProperty(PropertyName = "externalLink")]
21-
public string ExternalLink { get; set; }
23+
[JsonProperty(PropertyName = "externalLinks")]
24+
public string[] ExternalLinks { get; set; }
25+
26+
/// <summary>
27+
/// HTML used in the Before section of the UI for this Hazard
28+
/// </summary>
29+
[JsonProperty(PropertyName = "beforeSafetyDetails")]
30+
public string BeforeSafetyDetails {get; set;}
31+
32+
/// <summary>
33+
/// HTML used in the During section of the UI for this Hazard
34+
/// </summary>
35+
[JsonProperty(PropertyName = "duringSafetyDetails")]
36+
public string DuringSafetyDetails {get; set;}
37+
38+
/// <summary>
39+
/// HTML used in the After section of the UI for this Hazard
40+
/// </summary>
41+
[JsonProperty(PropertyName = "afterSafetyDetails")]
42+
public string AfterSafetyDetails {get; set;}
2243
}

0 commit comments

Comments
 (0)