Innovenergy_trunk/csharp/Lib/StatusApi/DeviceStatus.cs

17 lines
307 B
C#

namespace InnovEnergy.Lib.StatusApi;
public abstract record DeviceStatus
{
public String DeviceType
{
get
{
var t = GetType();
while (!t!.IsAbstract)
t = t.BaseType;
return t.Name.Replace("Status", "");
}
}
}