Change scale interface
This commit is contained in:
@ -22,5 +22,11 @@ namespace Elwig.Helpers.Weighing {
|
||||
/// Time string provided by the scale
|
||||
/// </summary>
|
||||
public string? Time = null;
|
||||
|
||||
/// <returns><Weight/WeighingId/Date/Time></returns>
|
||||
override public string ToString() {
|
||||
var w = Weight != null ? $"{Weight}kg" : "";
|
||||
return $"<{w}/{WeighingId}/{Date}/{Time}>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user