80 lines
1.9 KiB
C#
80 lines
1.9 KiB
C#
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Text;
|
|
|
|
namespace AutoCatCore.Model
|
|
{
|
|
public class Vehicle
|
|
{
|
|
[Key]
|
|
[JsonProperty("number")]
|
|
public string Number { get; set; }
|
|
|
|
[JsonProperty("currentNumber")]
|
|
public string CurrentNumber { get; set; }
|
|
|
|
[JsonProperty("vin1")]
|
|
public string Vin1 { get; set; }
|
|
|
|
[JsonProperty("vin2")]
|
|
public string Vin2 { get; set; }
|
|
|
|
[JsonProperty("sts")]
|
|
public string Sts { get; set; }
|
|
|
|
[JsonProperty("pts")]
|
|
public string Pts { get; set; }
|
|
|
|
[JsonProperty("brand")]
|
|
public VehicleBrand Brand { get; set; }
|
|
|
|
[JsonProperty("model")]
|
|
public VehicleModel Model { get; set; }
|
|
|
|
[JsonProperty("color")]
|
|
public string Color { get; set; }
|
|
|
|
[JsonProperty("year")]
|
|
public int Year { get; set; }
|
|
|
|
[JsonProperty("category")]
|
|
public string Category { get; set; }
|
|
|
|
[JsonProperty("isRightWheel")]
|
|
public bool? IsRightWheel { get; set; }
|
|
|
|
[JsonProperty("isJapanese")]
|
|
public bool? IsJapanese { get; set; }
|
|
|
|
[JsonProperty("addedDate")]
|
|
public double AddedDate { get; set; }
|
|
|
|
[JsonProperty("updatedDate")]
|
|
public double UpdatedDate { get; set; }
|
|
|
|
[JsonProperty("addedBy")]
|
|
public string AddedBy { get; set; }
|
|
|
|
[JsonProperty("engine")]
|
|
public VehicleEngine Engine { get; set; }
|
|
|
|
[JsonProperty("photos")]
|
|
public List<VehiclePhoto> Photos { get; set; }
|
|
|
|
[JsonProperty("events")]
|
|
public List<VehicleEvent> Events { get; set; }
|
|
|
|
[JsonProperty("osagoContracts", DefaultValueHandling = DefaultValueHandling.Ignore)]
|
|
public List<Osago> OsagoContracts { get; set; } = new List<Osago>();
|
|
|
|
[JsonProperty("ownershipPeriods", DefaultValueHandling = DefaultValueHandling.Ignore)]
|
|
public List<VehicleOwnershipPeriod> OwnershipPeriods { get; set; } = new List<VehicleOwnershipPeriod>();
|
|
|
|
[JsonProperty("ads")]
|
|
public List<VehicleAd> Ads { get; set; }
|
|
}
|
|
}
|