aix
2024-07-29 1b88342df7f52e00c6f9edf9dfb1c2b6f6ab0a07
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
package com.dji.sample.component.websocket.model;
 
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Builder;
import lombok.Data;
 
/**
 * The format of WebSocket messages that the pilot can receive.
 * @author sean.zhou
 * @date 2021/11/17
 * @version 0.1
 */
@Data
@Builder
public class CustomWebSocketMessage<T> {
 
    /**
     * @see BizCodeEnum
     * specific value
     */
    @JsonProperty("biz_code")
    private String bizCode;
 
    @Builder.Default
    private String version = "1.0";
 
    private Long timestamp;
 
    private T data;
}