using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Backend.Models { public enum VehicleTypeEnum : byte { Car = 1, //汽車 MOTO = 2, //機車 } public class ParkingConfig { public string Host { get; set; } public string Prefix { get; set; } public string ApiBase { get; set; } public string UserName { get; set; } public string Password { get; set; } } public class SpaceResponse { public string Code { get; set; } public Payload Payload { get; set; } } public class Payload { public List Car_types { get; set; } //該場地所有車位資訊 public List Areas { get; set; } } public class CarType { public int Vehicle_type_id { get; set; } //車種(請參照車種列表) public int Total { get; set; } //該車種總車位數 public int Remain { get; set; } //該車種剩餘車位數 } public partial class Area { public string Name { get; set; } public int Vehicle_type_id { get; set; } public int Total { get; set; } public int Remain { get; set; } } public class EquipmentResponse { public string Code { get; set; } public List Payload { get; set; } } public class EquipmentPayload { public int Id { get; set; } public string Name { get; set; } public string Type { get; set; } public bool Alive { get; set; } } }