17 lines
278 B
C#
17 lines
278 B
C#
|
namespace InnovEnergy.Lib.StatusApi.Devices;
|
||
|
|
||
|
public abstract class Device
|
||
|
{
|
||
|
public String DeviceType
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
var t = GetType();
|
||
|
|
||
|
while (!t!.IsAbstract)
|
||
|
t = t.BaseType;
|
||
|
|
||
|
return t.Name;
|
||
|
}
|
||
|
}
|
||
|
}
|