jiazx0107@163.com
2023-10-25 03e26beab1d9c382b685c26059e6dec274a0d7d4
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
package com.fzzy.api.data;
 
 
/**
 * 系统与网关之间的通讯协议
 */
public enum GatewayProtocol {
 
    GATE_WEBSOCKET("GATE_WEBSOCKET", "webSocket"),
    GATE_MQTT("GATE_MQTT", "MQTT"),
    GATE_HTTP("GATE_HTTP", "HTTP"),
    GATE_TEST("GATE_TEST", "测试");
 
 
    private String code;
    private String name;
 
 
    public String getCode() {
        return code;
    }
 
    public void setCode(String code) {
        this.code = code;
    }
 
    public String getName() {
        return name;
    }
 
    public void setName(String name) {
        this.name = name;
    }
 
    GatewayProtocol(String code, String name) {
        this.code = code;
        this.name = name;
    }
}