Beispiel #1
0
        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
            });
        }
Beispiel #2
0
        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
            });
        }
Beispiel #3
0
        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
            });
        }