Added NightAlert project for travel kit

This commit is contained in:
2021-06-10 14:39:06 -04:00
commit d38d9e3b7e
308 changed files with 35922 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
namespace NightScout
{
public interface IAlerter
{
void StartAlert();
void StartUrgentAlert();
void StartStaleDataAlert();
void StopAlerts();
}
}

View 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();
}
}

View 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;
}
}