package fr.zng.xxzx.biz;

import io.netty.channel.Channel;

public class SkSessionDto {

	/**
	 * 通道
	 */
	private Channel channel = null;

	/**
	 * 时间戳
	 */
	private long tempstamp = 0;

	/**
	 * 心跳包返回值
	 */
	private String heardRet = "00";
	
	
	/**
	 * 设备号
	 */
	private String equipmentCode = "";
	
	/**
	 * 设备号的获取
	 * @return 设备号
	 */
	public String getEquipmentCode() {
		return equipmentCode;
	}

	/**
	 * 设备号的设定
	 * @param equipmentCode 设备号
	 */
	public void setEquipmentCode(String equipmentCode) {
		this.equipmentCode = equipmentCode;
	}

	/**
	 * 构造体函数
	 */
	public SkSessionDto() {
		setHeardRet("00");
	}

	/**
	 * 心跳包返回值的取得
	 * @return 心跳包返回值
	 */
	public String getHeardRet() {
		return heardRet;
	}

	/**
	 * 心跳包返回值的设定
	 * @param heardRet 心跳包返回值
	 */
	public void setHeardRet(String heardRet) {
		this.heardRet = heardRet;
	}

	/**
	 * 通道的获取
	 * @return 通道
	 */
	public Channel getChannel() {
		return channel;
	}

	/**
	 * 通道的设定
	 * @param channel 通道
	 */
	public void setChannel(Channel channel) {
		this.channel = channel;
	}

	/**
	 * 时间戳的获取
	 * @return 时间戳 
	 */
	public long getTempstamp() {
		return tempstamp;
	}

	/**
	 * 时间戳的设定
	 * @param tempstamp 时间戳
	 */
	public void setTempstamp(long tempstamp) {
		this.tempstamp = tempstamp;
	}
}
