info.gratour.jt809core.codec.encoder.bodyencoder.link.MBEncoder_9003_DownDisconnectReq.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jt-core Show documentation
Show all versions of jt-core Show documentation
`jt-core` is a java/scala communication processing library for JT808/JT809/JT1078 standard.
The newest version!
package info.gratour.jt809core.codec.encoder.bodyencoder.link
import info.gratour.jt809core.codec.encoder.bodyencoder.MsgBodyEncoder
import info.gratour.jt809core.protocol.JT809Msg
import info.gratour.jt809core.protocol.msg.link.JT809Msg_9003_DownDisconnectReq
import io.netty.buffer.ByteBuf
object MBEncoder_9003_DownDisconnectReq extends MsgBodyEncoder{
override def msgId: Int = JT809Msg_9003_DownDisconnectReq.MSG_ID
override def encodeBody(m: JT809Msg, out: ByteBuf): Unit = {
out.writeInt(m.asInstanceOf[JT809Msg_9003_DownDisconnectReq].getVerifyCode)
}
}