czt
2025-06-11 283da741b2429cf5a53786e5ee1b5528b757fdf6
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
package com.fzzy.igds.dzhwk.constant;
 
/**
 * @Description 抓拍方式
 * @Author CZT
 * @Date 2024/12/10 16:38
 */
public enum CameraSnapType {
 
    SNAP_TYPE_FZZY_PLUGIN("FZZY-PLUGIN", "风正致远插件抓拍"),
    SNAP_TYPE_MEDIA("MEDIA", "流媒体"),
    SNAP_TYPE_OPEN_API("OPEN_API", "风正致远API抓拍");
 
    private String code;
    private String msg;
 
    private CameraSnapType(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
 
    public String getCode() {
        return code;
    }
 
    public String getMsg() {
        return msg;
    }
 
    public static String getMsg(String code) {
        if (null == code) return null;
        if (CameraSnapType.SNAP_TYPE_FZZY_PLUGIN.getCode().equals(code))
            return CameraSnapType.SNAP_TYPE_FZZY_PLUGIN.getMsg();
        if (CameraSnapType.SNAP_TYPE_MEDIA.getCode().equals(code)) return CameraSnapType.SNAP_TYPE_MEDIA.getMsg();
        if (CameraSnapType.SNAP_TYPE_OPEN_API.getCode().equals(code)) return CameraSnapType.SNAP_TYPE_OPEN_API.getMsg();
        return code;
    }
}