package com.djhk.uav.uav.service.impl;

import com.djhk.common.core.domain.R;
import com.djhk.uav.uav.model.DrcReceiver;
import com.djhk.uav.uav.model.SyunDrcConnectParam;
import com.djhk.uav.uav.model.SyunDrcDroneControlParam;
import com.djhk.uav.uav.model.SyunDrcModeParam;
import com.djhk.uav.uav.service.IDrcService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DrcServiceImpl implements IDrcService {
    @Override
    public R deviceDrcExit(SyunDrcModeParam syunDrcModeParam) {
        return null;
    }

    @Override
    public R deviceDrcEnter(SyunDrcModeParam syunDrcModeParam) {
        return null;
    }

    @Override
    public R userDrcAuth(SyunDrcConnectParam syunDrcConnectParam) {
        return null;
    }

    @Override
    public R droneControl(Long userId, SyunDrcDroneControlParam syunDrcDroneControlParam) {
        return null;
    }

    @Override
    public R emergencyStop(Long userId, SyunDrcDroneControlParam syunDrcDroneControlParam) {
        return null;
    }

    @Override
    public void droneControlReply(DrcReceiver drcReceiver) {

    }

    @Override
    public void emergencyStopReply(DrcReceiver drcReceiver) {

    }

    @Override
    public void handleHsiInfoPush(String receiver) {

    }

    @Override
    public void handleOsdInfoPush(String receiver) {

    }

    @Override
    public void handleDelayInfoPush(String receiver) {

    }
//    @Autowired
//    private DrcClient drcClient;
//    @Override
//    public R deviceDrcExit(SyunDrcModeParam syunDrcModeParam) {
//        return drcClient.drcExit(syunDrcModeParam);
//    }
//
//    @Override
//    public R deviceDrcEnter(SyunDrcModeParam syunDrcModeParam) {
//        return drcClient.drcEnter(syunDrcModeParam);
//    }
//
//    @Override
//    public R userDrcAuth(SyunDrcConnectParam syunDrcConnectParam) {
//        syunDrcConnectParam.setUserId(SecurityUtils.getUserId().toString());
//        syunDrcConnectParam.setUsername(SecurityUtils.getLoginUser().getUsername());
//        return drcClient.drcConnect(syunDrcConnectParam);
//    }
//
//    @Override
//    public R droneControl(Long userId,SyunDrcDroneControlParam syunDrcDroneControlParam) {
//        return drcClient.droneControl(userId,syunDrcDroneControlParam);
//    }
//
//    @Override
//    public R emergencyStop(Long userId,SyunDrcDroneControlParam syunDrcDroneControlParam) {
//        return drcClient.emergencyStop(userId,syunDrcDroneControlParam);
//    }
//
//    @Override
//    public void droneControlReply(DrcReceiver drcReceiver) {
//        drcClient.handleDroneControl(drcReceiver);
//    }
//
//    @Override
//    public void emergencyStopReply(DrcReceiver drcReceiver) {
//        drcClient.handleEmergencyStop(drcReceiver);
//    }
//
//    @Override
//    public void handleHsiInfoPush(String receiver) {
//        drcClient.handleHsiInfoPush(receiver);
//    }
//
//    @Override
//    public void handleOsdInfoPush(String receiver) {
//        drcClient.handleOsdInfoPush(receiver);
//    }
//
//    @Override
//    public void handleDelayInfoPush(String receiver) {
//        drcClient.handleDelayInfoPush(receiver);
//    }
}
