sharperang/libsharperang/Base.cs

22 lines
647 B
C#
Raw Normal View History

2019-09-11 11:06:53 +01:00

2019-08-22 00:55:40 +01:00
namespace libsharperang {
public abstract class Base {
public enum ConnectionType {
None,
UART,
USB,
Bluetooth
}
2019-08-27 01:20:54 +01:00
internal DataTransforms transform=new DataTransforms();
public string Model { get; internal set; }
2019-08-22 00:55:40 +01:00
public string FirmwareVer { get; internal set; }
public int Battery { get; internal set; }
public int ImageWidth { get; internal set; }
2019-08-22 00:55:40 +01:00
public ConnectionType ActiveConnectionType { get; internal set; } = ConnectionType.None;
2019-08-27 01:20:54 +01:00
internal bool InitialiseConnection() => false;
internal bool DestroyConnection() => false;
public Base() => InitialiseConnection();
~Base() => DestroyConnection();
2019-08-22 00:55:40 +01:00
}
}