#pragma once

#include <softbus_api/ExecuteCommand.h>
#include <softbus_transport/TcpUplinkServer.h>

#include <functional>
#include <string>

namespace softbus::daemon {

class CommandDispatcher {
public:
    explicit CommandDispatcher(softbus::transport::TcpUplinkServer* uplink);

    bool dispatch(const softbus::api::ExecuteCommand& command);

private:
    softbus::transport::TcpUplinkServer* uplink_{nullptr};
};

} // namespace softbus::daemon
