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 deviceList); void SendSensors(DeviceType type, int deviceId, List sensorList); void SendDeviceState(DeviceType type, object device); void SendSensorState(DeviceType type, object sensor); #endregion Send }