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:
@@ -1,5 +1,8 @@
|
||||
package com.jsowell.netty.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
public class ChargingPileMessage {
|
||||
private int physicalId;
|
||||
private short messageId;
|
||||
@@ -18,4 +21,15 @@ public class ChargingPileMessage {
|
||||
public short getMessageId() { return messageId; }
|
||||
public byte getCommand() { return command; }
|
||||
public byte[] getData() { return data; }
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.JSON_STYLE)
|
||||
.append("physicalId", physicalId)
|
||||
.append("messageId", messageId)
|
||||
.append("command", command)
|
||||
.append("data", data)
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.jsowell.netty.domain;
|
||||
|
||||
import io.netty.buffer.ByteBuf;
|
||||
|
||||
public class DnyMessage {
|
||||
private final ByteBuf content;
|
||||
|
||||
public DnyMessage(ByteBuf content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public ByteBuf getContent() {
|
||||
return content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.jsowell.netty.domain;
|
||||
|
||||
import io.netty.buffer.ByteBuf;
|
||||
|
||||
public class Message68 {
|
||||
private final ByteBuf content;
|
||||
|
||||
public Message68(ByteBuf content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public ByteBuf getContent() {
|
||||
return content;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user