25 lines
576 B
C++
25 lines
576 B
C++
#ifndef BF_REQUEST_H
|
|
#define BF_REQUEST_H
|
|
|
|
#include "bf.interface.h"
|
|
#include "bf.util.h"
|
|
#include "bf.config.h"
|
|
|
|
class BF_Request : public BF_Interface
|
|
{
|
|
public:
|
|
BF_Request();
|
|
~BF_Request() override;
|
|
|
|
public:
|
|
std::string getResult(const std::string& url) override;
|
|
std::string doReady(const std::string& words, const std::string& from, const std::string& to) override;
|
|
|
|
public:
|
|
static bool HandleStr(const std::string& jsonMsg, std::string& out);
|
|
|
|
private:
|
|
static size_t writeData(void* buffer, size_t size, size_t nmemb, std::string* str);
|
|
};
|
|
|
|
#endif |