SensorInfo.java 1.16 KB
Newer Older
luozhenzhen committed
1
package com.demo.entity.po;
2
import com.alibaba.fastjson.JSONObject;
luozhenzhen committed
3 4 5 6 7 8 9 10 11 12 13
import org.springframework.data.mongodb.core.mapping.Document;


/**
 * 传感器信息
 */
@Document(collection="SensorInfo")
public class SensorInfo {

    private String reyunId;
    private Long timestamp;
14
    private JSONObject sensorInfo;
luozhenzhen committed
15 16 17 18 19
    private String os;

    public SensorInfo() {
    }

20
    public SensorInfo(String reyunId, Long timestamp, JSONObject sensorInfo, String os) {
luozhenzhen committed
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
        this.reyunId = reyunId;
        this.timestamp = timestamp;
        this.sensorInfo = sensorInfo;
        this.os = os;
    }

    public String getReyunId() {
        return reyunId;
    }

    public void setReyunId(String reyunId) {
        this.reyunId = reyunId;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

43
    public JSONObject getSensorInfo() {
luozhenzhen committed
44 45 46
        return sensorInfo;
    }

47
    public void setSensorInfo(JSONObject sensorInfo) {
luozhenzhen committed
48 49 50 51 52 53 54 55 56 57 58
        this.sensorInfo = sensorInfo;
    }

    public String getOs() {
        return os;
    }

    public void setOs(String os) {
        this.os = os;
    }
}