package com.usky.eg.service;

import com.usky.eg.service.vo.EgDeviceAdbRemoteUpgradeBatchItemVO;
import com.usky.eg.service.vo.EgDeviceAdbRemoteUpgradeBatchResultVO;
import com.usky.eg.service.vo.EgDeviceAdbRemoteUpgradeVO;
import com.usky.eg.service.vo.EgDeviceAdbResultVO;

import java.util.List;

/**
 * 通过 MQTT 向终端下发远程升级参数（终端 {@code onCommand} 接收后自行下载安装）。
 */
public interface EgDeviceRemoteUpgradeMqttService {

    EgDeviceAdbResultVO publishRemoteUpgrade(EgDeviceAdbRemoteUpgradeVO vo);

    EgDeviceAdbRemoteUpgradeBatchResultVO publishRemoteUpgradeBatch(List<EgDeviceAdbRemoteUpgradeBatchItemVO> items,
                                                                    String fileUrl, String launchPackage);
}
