xieb
2024-04-01 97082b60eb2fbccb66f7f0beefb5cb591448ec10
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package com.dji.sample.component.mqtt.model;
 
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
 
/**
 * 统一主题响应格式
 * @author sean.zhou
 * @date 2021/11/15
 * @version 0.1
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@JsonIgnoreProperties(ignoreUnknown = true)
public class CommonTopicResponse<T> {
 
    /**
     * The command is sent and the response is matched by the tid and bid fields in the message,
     * and the reply should keep the tid and bid the same.
     */
    private String tid;
 
    private String bid;
 
    private String method;
    private String gateway;
 
    private T data;
 
    private Long timestamp;
}