ncc协议x

This commit is contained in:
xzb 2023-06-06 16:48:51 +08:00
parent d33f6366ac
commit 50f23d3502

View File

@ -0,0 +1,42 @@
package club.joylink.xiannccda.ats.message.line3;
import club.joylink.xiannccda.ats.message.MessageData;
import io.netty.buffer.ByteBuf;
/**
* 2.7.14 当天计划运行图参数消息
*/
public class InUsedScheduleParameterRsp extends MessageData {
/**
* 线路号(2)
*/
private Short lineId;
/**
* INUSED_SCHEDULE日期(7)
*/
private byte[] date = new byte[7];
/**
* 参数是否有效(1)
* 0x01:参数有效
* 0x02:参数无效
*/
private byte valid;
/**
* 当天计划运行图图号(48)
*/
private byte[] inUsedScheduleName = new byte[48];
/**
* 预留(8)
*/
private byte[] reserve = new byte[8];
@Override
public void decode2(ByteBuf buf) throws Exception {
this.lineId = buf.readShort();
buf.readBytes(this.date);
this.valid=buf.readByte();
buf.readBytes(this.inUsedScheduleName);
buf.readBytes(this.reserve);
}
}