Exemplo n.º 1
0
        private void OnLiftStateChange(object sender, LiftStateChangedEventArgs eventArgs)
        {
            var liftId  = eventArgs.LiftId;
            var date    = eventArgs.At;
            var message = eventArgs.Message;
            var liftLog = new LiftLog(date, message);

            _liftLogRepository.Log(liftId, liftLog);
        }
Exemplo n.º 2
0
 public LiftLogDto(LiftLog liftLog)
 {
     At      = liftLog.At;
     Message = liftLog.Message;
 }
Exemplo n.º 3
0
        private void RecordNewCall(int id, int floor)
        {
            var log = new LiftLog(DateTime.UtcNow, $"Lift called to floor {floor}");

            _liftLogRepository.Log(id, log);
        }