You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
879 B

using Newtonsoft.Json.Linq;
namespace JiLinApp.Biz.TransmitAlarm;
public interface IAlarmService
{
#region Event
public delegate void HandleRecvEvent(JObject reqObj);
public event HandleRecvEvent? OnFenceUdpSendDevices;
public event HandleRecvEvent? OnVibrateTcpSendDevices;
public event HandleRecvEvent? OnFenceUdpSendSensors;
public event HandleRecvEvent? OnVibrateTcpSendSensors;
#endregion Event
#region Base
void Start();
void Close();
bool IsRuning();
#endregion Base
#region Send
void SendAlarm(AlarmMessage msg);
void SendDevices(DeviceType type, List<object> deviceList);
void SendSensors(DeviceType type, int deviceId, List<object> sensorList);
void SendDeviceState(DeviceType type, object device);
void SendSensorState(DeviceType type, object sensor);
#endregion Send
}