Innovenergy_trunk/csharp/Lib/StatusApi/DeviceStatus.cs

17 lines
307 B
C#
Raw Normal View History

namespace InnovEnergy.Lib.StatusApi;
public abstract record DeviceStatus
{
public String DeviceType
{
get
{
var t = GetType();
2023-02-22 13:46:36 +00:00
while (!t!.IsAbstract)
t = t.BaseType;
2023-02-22 13:46:36 +00:00
return t.Name.Replace("Status", "");
}
}
}