rain
2024-08-21 2db1aa88e8ab53096a936163d686b90d8e056a99
src/main/java/com/dji/sample/component/mqtt/service/IMessageSenderService.java
@@ -28,6 +28,7 @@
    /**
     * Send message and receive a response at the same time.
     * 发送消息并同时接收响应。
     * @param clazz
     * @param topic
     * @param response  notification of whether the start is successful.
@@ -79,6 +80,10 @@
     */
    <T> ServiceReply<T> publishServicesTopic(TypeReference<T> clazz, String sn, String method, Object data);
    <T> ServiceReply<T> publishServicesTopic(TypeReference<T> clazz, String sn, String method, Object data, String bid,Long timestamp);
    ServiceReply publishServicesTopic(String sn, String method, Object data, String bid,Long timestamp);
    /**
     * Used exclusively for sending messages for services, and does not set the received subtype.
     * @param sn
@@ -87,4 +92,11 @@
     * @return
     */
    ServiceReply publishServicesTopic(String sn, String method, Object data);
    <T> ServiceReply<T> publishRequestsTopic(TypeReference<T> clazz, String sn, String method, Object data, String bid);
    ServiceReply publishRequestsTopic(String sn, String method, Object data, String bid);
    ServiceReply publishRequestsTopic(String sn, String method, Object data);
}