mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 03:55:17 +08:00
update 电单车协议
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
package com.jsowell.netty.domain;
|
||||
|
||||
public class ProtocolDnyMessage {
|
||||
private final byte[] header;
|
||||
private final int length;
|
||||
private final byte[] physicalId;
|
||||
private final int messageId;
|
||||
private final byte command;
|
||||
private final byte[] data;
|
||||
private final int checksum;
|
||||
|
||||
public ProtocolDnyMessage(byte[] header, int length, byte[] physicalId, int messageId, byte command, byte[] data, int checksum) {
|
||||
this.header = header;
|
||||
this.length = length;
|
||||
this.physicalId = physicalId;
|
||||
this.messageId = messageId;
|
||||
this.command = command;
|
||||
this.data = data;
|
||||
this.checksum = checksum;
|
||||
}
|
||||
|
||||
public byte[] getHeader() {
|
||||
return header;
|
||||
}
|
||||
|
||||
public int getLength() {
|
||||
return length;
|
||||
}
|
||||
|
||||
public byte[] getPhysicalId() {
|
||||
return physicalId;
|
||||
}
|
||||
|
||||
public int getMessageId() {
|
||||
return messageId;
|
||||
}
|
||||
|
||||
public byte getCommand() {
|
||||
return command;
|
||||
}
|
||||
|
||||
public byte[] getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public int getChecksum() {
|
||||
return checksum;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user