BindInfo.java 5.29 KB
package cn.com.glsx.dj.weapp.vo;


import java.io.Serializable;

/**
 * 用户绑定信息类
 * @author yangjia
 * @date 2019/10/17
 */
@SuppressWarnings("serial")
public class BindInfo implements Serializable{
    private Integer id;
    private Integer accountId;
    private Integer userId;
    private Integer deviceId;
    private Integer deviceType;
    private Short isMain;
    private String sn;
    private String deviceTypeName;
    /**套餐到期日期*/
    private String validateEnd;
    /**设备剩余流量*/
    private String surplusFlow;
    /**是否已实名认证*/
    private boolean isRealName;
    private String mobile;
    private String plateNumber;
    /**卡类型*/
    private String cardType;
    private String imsi;
    /**实名认证的结果*/
    private String realPass;
    /**厂商码*/
    private String manufacturer;


    private Integer sort=0;
    public BindInfo() {

    }

    public BindInfo(AccountBinding accountBind) {
        this.id = accountBind.getId();
        this.accountId = accountBind.getAccountId();
        this.userId = accountBind.getUserId();
        this.deviceId = accountBind.getDeviceId();
        this.deviceType = accountBind.getDeviceType();
        this.isMain = accountBind.getIsMain();
        this.sn = accountBind.getSn();
        this.deviceTypeName = getDeviceTypeName();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAccountId() {
        return accountId;
    }

    public void setAccountId(Integer accountId) {
        this.accountId = accountId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Integer deviceId) {
        this.deviceId = deviceId;
    }

    public Integer getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(Integer deviceType) {
        this.deviceType = deviceType;
    }

    public Short getIsMain() {
        return isMain;
    }

    public void setIsMain(Short isMain) {
        this.isMain = isMain;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getDeviceTypeName() {
        if (this.getDeviceType() == null) {
            return "";
        }
        switch (this.getDeviceType()) {
            case 12370:
                return "DDBOX";
            case 12364:
                return "飞行器";
            case 8:
                return "GPS";
            case 6:
                return "行车记录仪";
            case 5:
                return "TBOX(2G)";
            case 4:
                return "追踪器";
            case 3:
                return "电子狗";
            case 2:
                return "云导航";
            case 1:
                return "驾宝盒子";
            case 12134:
                return "智能云镜";
            default:
                return "";
        }
    }

    public void setDeviceTypeName(String deviceTypeName) {
        this.deviceTypeName = deviceTypeName;
    }

    public String getValidateEnd() {
        return validateEnd;
    }

    public void setValidateEnd(String validateEnd) {
        this.validateEnd = validateEnd;
    }

    public String getSurplusFlow() {
        return surplusFlow;
    }

    public void setSurplusFlow(String surplusFlow) {
        this.surplusFlow = surplusFlow;
    }

    public boolean isRealName() {
        return isRealName;
    }

    public void setRealName(boolean isRealName) {
        this.isRealName = isRealName;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPlateNumber() {
        return plateNumber;
    }

    public void setPlateNumber(String plateNumber) {
        this.plateNumber = plateNumber;
    }

    public String getCardType() {
        return cardType;
    }

    public void setCardType(String cardType) {
        this.cardType = cardType;
    }


    public String getImsi() {
        return imsi;
    }

    public void setImsi(String imsi) {
        this.imsi = imsi;
    }

    public String getRealPass() {
        return realPass;
    }

    public void setRealPass(String realPass) {
        this.realPass = realPass;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getManufacturer() {
        return manufacturer;
    }

    public void setManufacturer(String manufacturer) {
        this.manufacturer = manufacturer;
    }

    @Override
    public String toString() {
        return "BindInfo [id=" + id + ", accountId=" + accountId + ", userId=" + userId + ", deviceId=" + deviceId + ", deviceType=" + deviceType + ", isMain=" + isMain + ", sn=" + sn + ", deviceTypeName=" + deviceTypeName + ", validateEnd=" + validateEnd + ", surplusFlow=" + surplusFlow + ", isRealName=" + isRealName + ", mobile=" + mobile + ", plateNumber=" + plateNumber + ", cardType=" + cardType + ", imsi=" + imsi + ", realPass=" + realPass + ", sort=" + sort + ", manufacturer=" + manufacturer + "]";
    }



}