mirror-chatterino2/src/common/NetworkResult.hpp

22 lines
353 B
C++
Raw Normal View History

#pragma once
#include <rapidjson/document.h>
#include <QJsonObject>
namespace chatterino {
class NetworkResult
{
public:
NetworkResult(const QByteArray &data);
QJsonObject parseJson() const;
rapidjson::Document parseRapidJson() const;
2018-08-02 14:23:27 +02:00
const QByteArray &getData() const;
private:
QByteArray data_;
};
} // namespace chatterino