Exemplo n.º 1
0
 private IJT808Package Msg0x0100(JT808RequestInfo requestInfo, IChannelHandlerContext context)
 {
     return(new JT808_0x8100Package(requestInfo.JT808Package.Header, new JT808_0x8100()
     {
         Code = "J" + requestInfo.JT808Package.Header.TerminalPhoneNo,
         JT808TerminalRegisterResult = JT808TerminalRegisterResult.成功,
         MsgNum = requestInfo.JT808Package.Header.MsgNum
     }));
 }
Exemplo n.º 2
0
 private IJT808Package Msg0x0704(JT808RequestInfo requestInfo, IChannelHandlerContext context)
 {
     return(new JT808_0x8001Package(requestInfo.JT808Package.Header, new JT808_0x8001()
     {
         MsgId = requestInfo.JT808Package.Header.MsgId,
         JT808PlatformResult = JT808PlatformResult.Success,
         MsgNum = requestInfo.JT808Package.Header.MsgNum
     }));
 }
Exemplo n.º 3
0
 private IJT808Package Msg0x0003(JT808RequestInfo requestInfo, IChannelHandlerContext context)
 {
     sessionManager.RemoveSessionByTerminalPhoneNo(requestInfo.JT808Package.Header.TerminalPhoneNo);
     return(new JT808_0x8001Package(requestInfo.JT808Package.Header, new JT808_0x8001()
     {
         MsgId = requestInfo.JT808Package.Header.MsgId,
         JT808PlatformResult = JT808PlatformResult.Success,
         MsgNum = requestInfo.JT808Package.Header.MsgNum
     }));
 }