Created
March 6, 2016 05:46
-
-
Save zs40x/eceaa1e5a71c0c1ad965 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace SensorDevices | |
{ | |
public interface SensorDevice : DeviceControl, DeviceState, SensorReading | |
{} | |
public interface DeviceControl | |
{ | |
void powerOff(); | |
int getFirmwareVersion(); | |
long getSystemUptime(); | |
} | |
public interface DeviceState | |
{ | |
void enable(); | |
void disable(); | |
bool isEnabled(); | |
DateTime isEnabledSince(); | |
} | |
public interface SensorReading | |
{ | |
int getLastReading(); | |
int getMinReading(); | |
int getMaxReading(); | |
int getAvgReading(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment