vince
2023-06-28 9abb8808eeadfd13ab4d15f780c5d808d382877d
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
package com.ld.igds.phone.dto;
 
import com.ld.igds.constant.DeviceStatus;
import com.ld.igds.constant.DeviceType;
import lombok.Data;
 
/**
 * 设备信息封装
 * @author chen
 */
@Data
public class DtoDevice {
    private String companyId;
    private String id;
    private String depotId;
    private String name;
    private String status;
    private String statusName;
    private int passCode;
    private String serId;
    private String type;
    private String typeName;
    private String location;
    private String link;
 
    public String getStatusName() {
        if (null != this.type) {
            return DeviceStatus.getDeviceStatus(this.status);
        }
        return null;
    }
 
    public String getTypeName() {
        if (null != this.type) {
            return DeviceType.getMsg(this.status);
        }
        return null;
    }
 
}