Change scale interface

This commit is contained in:
2023-08-09 23:13:05 +02:00
parent 91a20662da
commit e1630e9919
7 changed files with 20 additions and 14 deletions

View File

@ -22,5 +22,11 @@ namespace Elwig.Helpers.Weighing {
/// Time string provided by the scale
/// </summary>
public string? Time = null;
/// <returns>&lt;Weight/WeighingId/Date/Time&gt;</returns>
override public string ToString() {
var w = Weight != null ? $"{Weight}kg" : "";
return $"<{w}/{WeighingId}/{Date}/{Time}>";
}
}
}