-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathVehicleDoorOpenedEvent.cs
More file actions
25 lines (21 loc) · 823 Bytes
/
VehicleDoorOpenedEvent.cs
File metadata and controls
25 lines (21 loc) · 823 Bytes
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
using System.Text.Json.Serialization;
namespace ConfigSample;
internal class VehicleDoorOpenedEvent
{
public string? VehicleId { get; set; }
public VehicleDoorKind Kind { get; set; }
public DateTimeOffset? Opened { get; set; }
public DateTimeOffset? Closed { get; set; }
}
internal class VehicleTelemetryEvent
{
public string? DeviceId { get; set; }
public DateTimeOffset Timestamp { get; set; }
public string? Action { get; set; }
public VehicleDoorKind? VehicleDoorKind { get; set; }
public VehicleDoorStatus? VehicleDoorStatus { get; set; }
[JsonExtensionData]
public Dictionary<string, object>? Extras { get; set; }
}
internal enum VehicleDoorStatus { Unknown, Open, Closed, }
internal enum VehicleDoorKind { FrontLeft, FrontRight, RearLeft, ReadRight, Hood, Trunk, }