#pragma once

#include <QString>
#include <QJsonObject>

namespace softbus::api::ipc
{

struct DispatchResult
{
    int code{0};
    QString message;
    QJsonObject data;
};

class CommandDispatcher
{
public:
    DispatchResult dispatch(const QString& action, const QJsonObject& params) const;
};

} // namespace softbus::api::ipc

