public CarPartStateDTO GetLockState(int id) { Car car = _carService.GetCar(id); return(new CarPartStateDTO { ToggleLock = car.AreDoorsBlocked, ToggleFuelCap = car.IsFuelFillerOpen, ToggleHood = car.IsHoodOpen, ToggleRoof = car.IsRoofOpen, ToggleTrunk = car.IsTrunkOpen }); }
public ACStateDTO GetACState(int id) { Car car = _carService.GetCar(id); return(new ACStateDTO { ACTemp = car.ClimaTemperature, InsideTemp = car.InsideTemperature, OutsideTemp = car.OutsideTemperature, HotChairLevel = car.HotChairLevel, IsACOn = car.IsClimaOn }); }
public LockStateDTO GetLockState(int id) { Car car = _carService.GetCar(id); return(new LockStateDTO { AreDoorsBlocked = car.AreDoorsBlocked, IsFuelFillerOpen = car.IsFuelFillerOpen, IsHoodOpen = car.IsHoodOpen, IsRoofOpen = car.IsRoofOpen, IsTrunkOpen = car.IsTrunkOpen }); }