/* * IXCobraBot.h * Author: Benjamin Sergeant * Copyright (c) 2020 Machine Zone, Inc. All rights reserved. */ #pragma once #include #include #include "IXCobraBotConfig.h" #include #include namespace ix { using OnBotMessageCallback = std::function&, std::atomic&, std::atomic&)>; class CobraBot { public: CobraBot() = default; int64_t run(const CobraBotConfig& botConfig); void setOnBotMessageCallback(const OnBotMessageCallback& callback); std::string getDeviceIdentifier(const Json::Value& msg); private: OnBotMessageCallback _onBotMessageCallback; }; } // namespace ix