25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

38 lines
1.1 KiB

  1. using JT808.Gateway.Abstractions;
  2. using JT808.Protocol;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Text;
  6. namespace JT808.Gateway.SimpleQueueService.Impl
  7. {
  8. public class JT808QueueReplyMessageHandlerImpl : JT808QueueReplyMessageHandler
  9. {
  10. public JT808QueueReplyMessageHandlerImpl(IJT808Config jT808Config, IJT808MsgReplyProducer jT808MsgReplyProducer) : base(jT808Config, jT808MsgReplyProducer)
  11. {
  12. //添加自定义消息
  13. HandlerDict.Add(0x9999, Msg0x9999);
  14. }
  15. /// <summary>
  16. /// 重写消息
  17. /// </summary>
  18. /// <param name="request"></param>
  19. /// <returns></returns>
  20. public override byte[] Msg0x0001(JT808HeaderPackage request)
  21. {
  22. return base.Msg0x0001(request);
  23. }
  24. /// <summary>
  25. /// 自定义消息
  26. /// </summary>
  27. /// <param name="request"></param>
  28. /// <returns></returns>
  29. public byte[] Msg0x9999(JT808HeaderPackage request)
  30. {
  31. return default;
  32. }
  33. }
  34. }