protected virtual void SpeakMotion(MotionType value)
 {
     if (value != MotionType)
     {
         if (IsAutomove)
         {
             _notifyService.Notify("You start moving on the car");
         }
         else
         {
             _notifyService.Notify(value.ToString());
         }
     }
 }
示例#2
0
        public async Task <IActionResult> Notify([FromBody] Message reason)
        {
            await _notifyService.Notify(reason);

            return(Ok());
        }