Class AlarmEvent
报警记录信息
Inheritance
System.Object
AlarmEvent
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FBoxClientDriver.Contract
Assembly: FBoxClientDriver.Contract.dll
Syntax
public class AlarmEvent
Properties
Action
类型 AlarmAction
Declaration
[JsonProperty("a")]
public AlarmAction Action { get; set; }
Property Value
Type | Description |
---|---|
AlarmAction |
AlarmId
报警条目UID
Declaration
[JsonProperty("i")]
public long AlarmId { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
Code
报警条目(编码)
Declaration
[JsonProperty("n")]
public string Code { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Message
报警内容
Declaration
[JsonProperty("m")]
public string Message { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Name
报警名称
Declaration
[JsonProperty("rn")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Timestamp
报警触发时间
Declaration
[JsonIgnore]
public DateTime Timestamp { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
TimestampUnixEpoch
UNIX时间戳
Declaration
[JsonProperty("t")]
public long TimestampUnixEpoch { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
Value
值
Declaration
[JsonProperty("v")]
public object Value { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
Methods
ShouldSerializeAlarmId()
是否显示报警条目Id
Declaration
public bool ShouldSerializeAlarmId()
Returns
Type | Description |
---|---|
System.Boolean |