/// <summary>
 /// Initializes a new instance of the <see cref="EsploraPulseController" /> class.
 /// </summary>
 public EsploraPulseController(ref PulseData data)
 {
     if (data == null)
     {
         throw new ArgumentNullException(nameof(data), @"The data object cannot be null.");
     }
     this.calculator = new PulseCalculator(ref data);
 }
Exemple #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PulseCalculator"/> class.
        /// </summary>
        /// <param name="data">The data object.</param>
        /// <exception cref="ArgumentNullException">
        /// @the pulse sensor data object cannot be null
        /// </exception>
        public PulseCalculator(ref PulseData data)
        {
            if (data == null)
            {
                throw new ArgumentNullException(nameof(data), @"the pulse sensor data object cannot be null");
            }

            this.data = data;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="PulseCalculator"/> class.
        /// </summary>
        /// <param name="data">The data object.</param>
        /// <exception cref="ArgumentNullException">
        /// @the pulse sensor data object cannot be null
        /// </exception>
        public PulseCalculator(ref PulseData data)
        {
            if (data == null)
            {
                throw new ArgumentNullException(nameof(data), @"the pulse sensor data object cannot be null");
            }

            this.data = data;
        }