aix
2024-08-20 b0dd7ca693fcd13e539316cfc8c63150182a0315
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.dji.sample.control.service.impl;
 
import com.dji.sample.common.util.SpringBeanUtils;
import com.dji.sample.manage.model.enums.DockModeCodeEnum;
import com.dji.sample.manage.service.IDeviceService;
 
/**
 * @author sean
 * @version 1.3
 * @date 2022/10/27
 */
public class RemoteDebugHandler {
 
    public boolean valid() {
        return false;
    }
 
    public boolean canPublish(String sn) {
        IDeviceService deviceService = SpringBeanUtils.getBean(IDeviceService.class);
        DockModeCodeEnum dockMode = deviceService.getDockMode(sn);
        return DockModeCodeEnum.REMOTE_DEBUGGING == dockMode;
    }
}