#ifndef FROMSUPERBRAIN_H #define FROMSUPERBRAIN_H #include #include "spdlog/spdlog.h" struct AlgorithmInfo; struct DeviceInfo; class FromSuperBrain { public: FromSuperBrain(); ~FromSuperBrain(); /* 获取token */ bool getToken(); /* 获取算法列表 */ bool getTaskTypeList(std::vector& vecInfo); /* 获取设备列表信息 */ bool getDeviceList(std::vector& vecInfo); /* 图片识别 */ bool imageRecognition(); private: std::shared_ptr m_logger = nullptr; std::string m_url; std::string m_username; std::string m_password; std::string m_appKey; /* 授权码 */ std::string m_appSecret; /* 授权码 */ std::string m_token; /* token */ const std::string m_tokenPath = "/external/broadcastToken"; /* 获取token数据 */ const std::string m_taskTypeListPath = "/external/getTaskTypeList"; /* 获取任务类型数据 */ const std::string m_deviceListPath = "/external/getBaseDeviceList"; /* 获取设备列表数据 */ const std::string m_imageRecognitionPath = "/external/imageIdentify"; /* 图片识别 */ }; #endif /* FROMSUPERBRAIN_H */