CarEnergy.java 951 Bytes
package com.bsth.message.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * @author Hill
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class CarEnergy {

    /**
     * 车辆内部编码
     */
    @JsonProperty("carCode")
    private String nbbm;

    /**
     * 剩余电量
     */
    private double energy;

    /**
     * 最后更新时间戳
     */
    private long updateTimestamp;

    public String getNbbm() {
        return nbbm;
    }

    public void setNbbm(String nbbm) {
        this.nbbm = nbbm;
    }

    public double getEnergy() {
        return energy;
    }

    public void setEnergy(double energy) {
        this.energy = energy;
    }

    public long getUpdateTimestamp() {
        return updateTimestamp;
    }

    public void setUpdateTimestamp(long updateTimestamp) {
        this.updateTimestamp = updateTimestamp;
    }
}