zhanghua
2024-09-05 a4cd4c2d98392cd1036f36b96c262878743a7e63
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
package com.ycl.util.dahua.alarm;
 
import java.util.Date;
 
public class AlarmEventInfo {
    public static long index = 0;
    public long id;
    public int chn;
    public int type;
    public Date date;
    public AlarmStatus status;
 
    public AlarmEventInfo(int chn, int type, AlarmStatus status) {
        this.chn = chn;
        this.type = type;
        this.status = status;
        this.date = new Date();
    }
 
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        AlarmEventInfo showInfo = (AlarmEventInfo) o;
        return chn == showInfo.chn && type == showInfo.type;
    }
}