-
Notifications
You must be signed in to change notification settings - Fork 0
/
Van.cs
26 lines (23 loc) · 907 Bytes
/
Van.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
namespace A3S5_TransConnect
{
class Van : Vehicle, IDisplayEditable<Van>
{
public string Type { get; set; }
public Van() : this(default, default, default, default, default, default, default)
{ }
public Van(string model = "Unknown", string brand = "Unknown", string numberPlate = "00AAA000",
DateTime? lastRevision = null, uint kilometerCount = 0, string fuelType = "Unknown", string type = "Utility")
: base(model, brand, numberPlate, lastRevision, kilometerCount, fuelType)
{
this.Type = type;
}
public override string ToString()
=> base.ToString() + $", Type: {this.Type}";
public override List<PropertyCapsule> PropertyCapsules()
=> base.PropertyCapsules().Concat(new List<PropertyCapsule>
{
new PropertyCapsule("Van Type : ", () => this.Type,
() => this.Type = "Utility", l => this.Type = Display.CleanRead<string>("Van Type > ", l)),
}).ToList();
}
}