#pragma once

#include <saas/api/action.h>

#include <functional>

namespace NSaasPush {
    enum class EMessageFormat {
        Json,
        Proto
    };

    using TActionPtr = TAtomicSharedPtr<NSaas::TAction>;
    using TDataParser = std::function<TActionPtr (const TString& data)>;

    TDataParser CreateDataParser(EMessageFormat messageFormat);
}
