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
105
106
107
108
109
110
111
112
113
package com.ruoyi.iot.model;
 
/**
 * 客户端连接模型
 *
 * @author kerwincui
 * @date 2021-12-16
 */
public class MqttClientConnectModel {
    /**
     * 事件名称(固定为:"client_connected" "client_disconnected")
     **/
    private String action;
 
    /**
     * 客户端 ClientId
     **/
    private String clientid;
 
    /**
     * 客户端 Username,不存在时该值为 "undefined"
     **/
    private String username;
 
    /**
     * 客户端源 IP 地址
     **/
    private String ipaddress;
 
    /**
     * 客户端申请的心跳保活时间
     **/
    private Integer keepalive;
 
    /**
     * 协议版本号
     **/
    private Integer proto_ver;
 
    /**
     * 时间戳(秒)
     **/
    private Long connected_at;
 
    /**
     * 错误原因
     **/
    private String reason;
 
    public String getAction() {
        return action;
    }
 
    public void setAction(String action) {
        this.action = action;
    }
 
    public String getClientid() {
        return clientid;
    }
 
    public void setClientid(String clientid) {
        this.clientid = clientid;
    }
 
    public String getUsername() {
        return username;
    }
 
    public void setUsername(String username) {
        this.username = username;
    }
 
    public String getIpaddress() {
        return ipaddress;
    }
 
    public void setIpaddress(String ipaddress) {
        this.ipaddress = ipaddress;
    }
 
    public Integer getKeepalive() {
        return keepalive;
    }
 
    public void setKeepalive(Integer keepalive) {
        this.keepalive = keepalive;
    }
 
    public Integer getProto_ver() {
        return proto_ver;
    }
 
    public void setProto_ver(Integer proto_ver) {
        this.proto_ver = proto_ver;
    }
 
    public Long getConnected_at() {
        return connected_at;
    }
 
    public void setConnected_at(Long connected_at) {
        this.connected_at = connected_at;
    }
 
    public String getReason() {
        return reason;
    }
 
    public void setReason(String reason) {
        this.reason = reason;
    }
}