DCS/ruiyiweiUX/Assets/Scripts/ViewModels/AlarmRecordViewModel.cs

19 lines
437 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// using System.Collections.Generic;
// public class AlarmRecordViewModel
// {
// public IReadOnlyList<AlarmEvent> GetRecords(int max)
// {
// // 优先使用DCSAlarmManager获取报警记录
// if (DCSAlarmManager.Instance != null)
// {
// return DCSAlarmManager.Instance.GetAlarmRecords(max);
// }
// // 回退到传统的AlarmService如果存在
// return new List<AlarmEvent>().AsReadOnly();
// }
// }