package com.mvc.model.forwarding;

import com.mvc.model.TAireadModel;

import java.util.Date;

public class TForwarderRecordsModel {
    private Integer id;

    private Integer forwarderStationId;

    private Integer aireadId;

    private Date forwardTime;

    private Integer forwardNum;

    private Integer forwardStatus;

    private String sendMsg;

    private String replyMsg;

    private String stationCode;

    private String forwardValue;

    private Date forwardSampleTime;

    public TForwarderRecordsModel() {
    }

    public TForwarderRecordsModel(TAireadModel aireadModel) {
        this.forwardTime = new Date();
        this.aireadId = aireadModel.getId();
        this.forwardSampleTime = aireadModel.getSampleTime();
        this.stationCode = aireadModel.getStationCode();
        if (aireadModel.getResultValue() != null) {
            this.forwardValue = aireadModel.getResultValue().toString();
        }
    }

    public Integer getId() {
        return id;
    }

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

    public Integer getForwarderStationId() {
        return forwarderStationId;
    }

    public void setForwarderStationId(Integer forwarderStationId) {
        this.forwarderStationId = forwarderStationId;
    }

    public Integer getAireadId() {
        return aireadId;
    }

    public void setAireadId(Integer aireadId) {
        this.aireadId = aireadId;
    }

    public Date getForwardTime() {
        return forwardTime;
    }

    public void setForwardTime(Date forwardTime) {
        this.forwardTime = forwardTime;
    }

    public Integer getForwardNum() {
        return forwardNum;
    }

    public void setForwardNum(Integer forwardNum) {
        this.forwardNum = forwardNum;
    }

    public Integer getForwardStatus() {
        return forwardStatus;
    }

    public void setForwardStatus(Integer forwardStatus) {
        this.forwardStatus = forwardStatus;
    }

    public String getSendMsg() {
        return sendMsg;
    }

    public void setSendMsg(String sendMsg) {
        this.sendMsg = sendMsg == null ? null : sendMsg.trim();
    }

    public String getReplyMsg() {
        return replyMsg;
    }

    public void setReplyMsg(String replyMsg) {
        this.replyMsg = replyMsg == null ? null : replyMsg.trim();
    }

    public String getStationCode() {
        return stationCode;
    }

    public void setStationCode(String stationCode) {
        this.stationCode = stationCode == null ? null : stationCode.trim();
    }

    public String getForwardValue() {
        return forwardValue;
    }

    public void setForwardValue(String forwardValue) {
        this.forwardValue = forwardValue == null ? null : forwardValue.trim();
    }

    public Date getForwardSampleTime() {
        return forwardSampleTime;
    }

    public void setForwardSampleTime(Date forwardSampleTime) {
        this.forwardSampleTime = forwardSampleTime;
    }
}