Advanced Distributed Systems module at HSLU
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.
 
 
ADIS_Projects/ADIS_Csharp/RobotLib/Battery/LastResponseUpdateEventArgs.cs

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;
}
}
}