public override bool Equals(object obj) { bool result = false; if (obj is ConsoleTelemetry) { ConsoleTelemetry other = (ConsoleTelemetry)obj; result = Id.Equals(other.Id) && Temperature.Equals(other.Temperature) && Humidity.Equals(other.Humidity) && Timestamp.Equals(other.Timestamp); } return(result); }
public static string GenerateText(ConsoleTelemetry telemetryState) { return(telemetryState != null ? $"{telemetryState}" : "(not started)"); }