Directive.java 1.79 KB
package com.bsth.vehicle.directive.entity;

import javax.persistence.MappedSuperclass;
import javax.persistence.Transient;

/**
 * 
 * @ClassName: Directive 
 * @Description: TODO(指令基础类) 
 * @author PanZhao
 * @date 2016年7月31日 下午8:35:56 
 *
 */
@MappedSuperclass
public class Directive {

	/**
	 * 一级协议
	 */
	protected short operCode;
	
	/**
	 * 设备号
	 */
	protected String deviceId;
	
	/**
	 * 时间戳
	 */
	protected Long timestamp;
	
	/**
	 * 时间 HH:mm
	 */
	@Transient
	private String timeHHmm;
	
	/**
	 * 车辆内部编码
	 */
	@Transient
	private String nbbm;
	
	private String errorText;
	
	private int httpCode;
	
	/**
	 * 发送人
	 */
	private String sender;

	public short getOperCode() {
		return operCode;
	}

	public void setOperCode(short operCode) {
		this.operCode = operCode;
	}

	public String getDeviceId() {
		return deviceId;
	}

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

	public Long getTimestamp() {
		return timestamp;
	}

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

	public String getTimeHHmm() {
		return timeHHmm;
	}

	public void setTimeHHmm(String timeHHmm) {
		this.timeHHmm = timeHHmm;
	}

	public String getNbbm() {
		return nbbm;
	}

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

	public String getErrorText() {
		return errorText;
	}

	public void setErrorText(String errorText) {
		this.errorText = errorText;
	}

	public int getHttpCode() {
		return httpCode;
	}

	public void setHttpCode(int httpCode) {
		this.httpCode = httpCode;
	}

	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}
}