// using System; // using System.Collections.Generic; // public interface IAlarmService : IService // { // event Action OnAlarmRaised; // bool IsMuted { get; } // void Mute(bool mute); // void Mute(bool mute, int durationInMinutes); // void RaiseAlarm(AlarmPriority priority, string reason); // IReadOnlyList GetRecords(int maxCount = 100); // void ClearRecords(); // 添加清空记录方法 // }