xieb
2024-04-08 ff968e2cfb132eb86c70e94e99b9937a8a7b15e9
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
package com.dji.sample.component.mqtt.handler;
 
import com.dji.sample.component.mqtt.model.CommonTopicReceiver;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.stereotype.Service;
 
import java.util.Map;
 
/**
 * @author sean
 * @version 0.3
 * @date 2022/3/21
 */
@Service
public class StateDefaultHandler extends AbstractStateTopicHandler {
 
    protected StateDefaultHandler() {
        super(null);
    }
 
    @Override
    public CommonTopicReceiver handleState(Map<String, Object> dataNode, CommonTopicReceiver stateReceiver, String sn) throws JsonProcessingException {
        // If no suitable handler is found for the data, it is not processed.
        return stateReceiver;
    }
}