示例#1
0
        /// <summary>
        /// Take action when there is a move in the room
        /// </summary>
        /// <param name="motionTime"></param>
        /// <returns></returns>
        public async Task MarkMotion(DateTimeOffset motionTime)
        {
            TryTuneTurnOffTimeOut(motionTime);
            LastMotion.SetTime(motionTime);
            await SetProbability(Probability.Full);

            CheckAutoIncrementForOnePerson(motionTime);

            _turnOffTimeOut.Increment();

            Debug.WriteLine($"New timeline: {_turnOffTimeOut.Value.Seconds}s");
        }