using System; namespace RobotLib.Battery { public class LastResponseUpdateEventArgs : EventArgs { /// /// Seconds since last got a response from the robot. /// public int Seconds { get; } /// /// Returns true if the robot is assessed to be online. /// Returns false if the robot was unresonsive for too long. /// public bool Online { get; } public LastResponseUpdateEventArgs(bool connected, int seconds) { Seconds = seconds; Online = connected; } } }