namespace HihaArvio.Models; /// /// Represents current shake gesture data. /// public class ShakeData { private double _intensity; /// /// Gets or sets the normalized shake intensity (0.0 to 1.0). /// /// Thrown when value is outside [0.0, 1.0] range. public double Intensity { get => _intensity; set { if (value < 0.0 || value > 1.0) { throw new ArgumentOutOfRangeException( nameof(value), value, "Intensity must be between 0.0 and 1.0."); } _intensity = value; } } /// /// Gets or sets the duration of the current shake gesture. /// public TimeSpan Duration { get; set; } /// /// Gets or sets a value indicating whether a shake is currently in progress. /// public bool IsShaking { get; set; } }