leutu
2024-06-03 3ef35e6cd16bbfa206b26bb3271eac40ad020bcb
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
package com.fastbee.common.core.mq;
 
import com.fastbee.common.core.mq.message.SubDeviceMessage;
import com.fastbee.common.core.protocol.Message;
import com.fastbee.common.core.thingsModel.ThingsModelValuesInput;
import com.fastbee.common.enums.FunctionReplyStatus;
import com.fastbee.common.enums.ServerType;
import lombok.Data;
import lombok.EqualsAndHashCode;
 
import java.util.Date;
import java.util.List;
 
 
/**
 * 设备上行数据model
 *
 * @author bill
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class DeviceReport extends Message {
 
    /**
     * 设备编号
     */
    private String serialNumber;
    /**
     * 产品ID
     */
    private Long productId;
    /**
     * 平台时间
     */
    private Date platformDate;
    /**
     * 寄存器地址
     */
    private String hexAddress;
    /**
     * 物模型标识符
     */
    private String identifier;
    /**
     * 消息id
     */
    private String messageId;
    /**
     * 设备主动上报的消息体
     * key 物模型Identifier
     * value 物模型设备对应值
     */
    private ThingsModelValuesInput valuesInput;
    /**
     * 消息id或 消息流水号
     */
    private String serNo;
    /**
     * 值是否监控,如果监控表示需要历史存储,该值来自物模型
     */
    private Integer isMonitor;
    /** ================网关子设备====================*/
    /**
     * 网关子设备编号
     */
    private List<String> subDeviceCodes;
    /**
     * 网关子设备消息
     */
    private List<SubDeviceMessage> subDeviceMessages;
    /** ================回调数据====================*/
 
    /**
     * 是否设备回复数据
     */
    private Boolean isReply = false;
 
    /**
     * 设备回复消息
     */
    private String replyMessage;
    /**
     * 设备回复状态
     */
    private FunctionReplyStatus status;
    /**
     * 从机编号
     */
    private Integer slaveId;
    /**
     * 服务器类型
     */
    private ServerType serverType;
    /**
     * 寄存器地址
     */
    private int address;
 
    private String protocolCode;
 
    private Long userId;
    private String userName;
    private String deviceName;
}