1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
using FLY.OBJComponents.Common;
using FLY.OBJComponents.Server.Model;
using FObjBase;
using FObjBase.Reflect;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FLY.OBJComponents.IService
{
/// <summary>
/// 报警管理系统,配置,整个历史列表
/// </summary>
public interface IWarningSystem2Service : INotifyPropertyChanged
{
/// <summary>
/// 报警使能
/// </summary>
bool Enable { get; set; }
/// <summary>
/// 正在响铃
/// </summary>
bool IsRinging { get; }
/// <summary>
/// 复位,把全部报警消失
/// </summary>
void Reset();
/// <summary>
/// 静音,不消失报警,只是静音,新的报警来,还是会响
/// </summary>
void Silence();
/// <summary>
/// 当前报警列表
/// </summary>
FlyData_WarningHistory[] ReasonList { get; }
/// <summary>
/// 最后一条数据Id
/// </summary>
long LastId { get; }
/// <summary>
/// 获取纵向趋势图
/// </summary>
/// <param name="request"></param>
/// <param name="asyncDelegate"></param>
/// <param name="asyncContext"></param>
[Call(typeof(Pack_GetTrendReponse<FlyData_WarningHistory>))]
void GetTrend(
Pack_GetTrendRequest request,
AsyncCBHandler asyncDelegate, object asyncContext);
}
}