-
Notifications
You must be signed in to change notification settings - Fork 260
/
Copy pathDriverItem.cs
42 lines (31 loc) · 1.04 KB
/
DriverItem.cs
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
using Newtonsoft.Json;
namespace ServerlessMicroservices.Models
{
public class DriverItem : BaseItem
{
[JsonProperty("code")]
public string Code { get; set; } = "";
[JsonProperty("firstName")]
public string FirstName { get; set; } = "";
[JsonProperty("lastName")]
public string LastName { get; set; } = "";
[JsonProperty("latitude")]
public double Latitude { get; set; } = 0;
[JsonProperty("longitude")]
public double Longitude { get; set; } = 0;
[JsonProperty("car")]
public CarItem Car { get; set; } = new CarItem();
[JsonProperty("isAcceptingRides")]
public bool IsAcceptingRides { get; set; } = true;
}
public class DriverLocationItem : BaseItem
{
[JsonProperty("driverCode")]
public string DriverCode { get; set; } = "";
[JsonProperty("latitude")]
public double Latitude { get; set; } = 0;
[JsonProperty("longitude")]
public double Longitude { get; set; } = 0;
}
}