All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gateway.connector.proto.Proto Maven / Gradle / Ivy

package com.gateway.connector.proto;

import java.io.Serializable;

/**
 * 
 */
public class Proto implements Serializable {

    public static final short HEADER_LENGTH = 20;
    private int packetLen;
    private short headerLen;
    private int cmd;//1,2,3,
    private short format;///,
    private int seq;//

    private String sessionId;
    private byte[] body;
	public int getPacketLen() {
		return packetLen;
	}
	public void setPacketLen(int packetLen) {
		this.packetLen = packetLen;
	}
	public short getHeaderLen() {
		return headerLen;
	}
	public void setHeaderLen(short headerLen) {
		this.headerLen = headerLen;
	}

	public int getCmd() {
		return cmd;
	}
	public void setCmd(int cmd) {
		this.cmd = cmd;
	}
	public short getFormat() {
		return format;
	}
	public void setFormat(short format) {
		this.format = format;
	}
	public int getSeq() {
		return seq;
	}
	public void setSeq(int seq) {
		this.seq = seq;
	}
	public String getSessionId() {
		return sessionId;
	}
	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}
	public byte[] getBody() {
		return body;
	}
	public void setBody(byte[] body) {
		this.body = body;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy