Added NightAlert project for travel kit
This commit is contained in:
10
NightScout/Interfaces/IAlerter.cs
Normal file
10
NightScout/Interfaces/IAlerter.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace NightScout
|
||||
{
|
||||
public interface IAlerter
|
||||
{
|
||||
void StartAlert();
|
||||
void StartUrgentAlert();
|
||||
void StartStaleDataAlert();
|
||||
void StopAlerts();
|
||||
}
|
||||
}
|
||||
19
NightScout/Interfaces/INightscoutDataSource.cs
Normal file
19
NightScout/Interfaces/INightscoutDataSource.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace NightScout
|
||||
{
|
||||
public interface INightscoutDataSource
|
||||
{
|
||||
event Action Connected;
|
||||
event Action<Object> DataUpdate;
|
||||
event Action<Object> SocketError;
|
||||
event Action<Object> Alarm;
|
||||
event Action<Object> UrgentAlarm;
|
||||
event Action<Object> ClearAlarm;
|
||||
event Action StaleDataAlarm;
|
||||
void Emit(String eventName, String data);
|
||||
void Emit(String eventName, JObject data);
|
||||
void Authorize();
|
||||
}
|
||||
}
|
||||
12
NightScout/Interfaces/IRaspberryPiButtonSource.cs
Normal file
12
NightScout/Interfaces/IRaspberryPiButtonSource.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace NightScout.Interfaces
|
||||
{
|
||||
public interface IRaspberryPiButtonSource
|
||||
{
|
||||
event Action<Boolean> ButtonStateChange;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user