kaiyu
2020-12-07 cf42a18aba4da77141dd0ea65918444636f899e1
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
package com.moral.entity.adapter;
 
import com.moral.entity.Device;
import com.moral.entity.DeviceProperty;
 
public class EquDeviceAdapter {
    private Device device;
    
    private DeviceProperty deviceProperty;
    
    
    public DeviceProperty getDeviceProperty() {
        return deviceProperty;
    }
    public void setDeviceProperty(DeviceProperty deviceProperty) {
        this.deviceProperty = deviceProperty;
    }
    public EquDeviceAdapter(){
        this.device = new Device();
        this.deviceProperty = new DeviceProperty();
    }
    public void setDevice(Device device) {
        this.device = device;
    }
 
    public void setUid(Integer uid) {
        device.setOperateUserId(uid);
    }
    public void setId(Integer id) {  device.setId(id);  }
 
    public void setDevice_name(String device_name) {
        device.setName(device_name);
    }
 
    public void setAddress(String address) {
        device.setAddress(address);
    }
 
    public void setLongitude(Double longitude) {
        device.setLongitude(longitude);
    }
 
    public void setLatitude(Double latitude) {
        device.setLatitude(latitude);
    }
 
    public void setMac(String mac) {
        device.setMac(mac);
    }
 
    public void setMonitorpoint(Integer monitorpoint) {
        device.setMonitorPointId(monitorpoint);
    }
 
    public void setProfessionId(Integer professionId) {
        device.setProfessionId(professionId);
    }
    
    public void setDeviceTech(Byte deviceTech) {
        deviceProperty.setDeviceTech(deviceTech);
    }
    public void setExtC(String extC) {
        deviceProperty.setExtC(extC);
    }
    public void setExtD(String extD) {
        deviceProperty.setExtD(extD);
    }
    
    public Device toDevice(){
        return device;
    }
}