You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
632 B
24 lines
632 B
using System;
|
|
|
|
namespace RobotLib.Battery
|
|
{
|
|
public class LastResponseUpdateEventArgs : EventArgs
|
|
{
|
|
/// <summary>
|
|
/// Seconds since last got a response from the robot.
|
|
/// </summary>
|
|
public int Seconds { get; }
|
|
|
|
/// <summary>
|
|
/// Returns true if the robot is assessed to be online.
|
|
/// Returns false if the robot was unresonsive for too long.
|
|
/// </summary>
|
|
public bool Online { get; }
|
|
|
|
public LastResponseUpdateEventArgs(bool connected, int seconds)
|
|
{
|
|
Seconds = seconds;
|
|
Online = connected;
|
|
}
|
|
}
|
|
}
|
|
|