mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
21 lines
337 B
C++
21 lines
337 B
C++
|
#pragma once
|
||
|
|
||
|
#include <rapidjson/document.h>
|
||
|
#include <QJsonObject>
|
||
|
|
||
|
namespace chatterino {
|
||
|
|
||
|
class NetworkResult
|
||
|
{
|
||
|
QByteArray data_;
|
||
|
|
||
|
public:
|
||
|
NetworkResult(const QByteArray &data);
|
||
|
|
||
|
QJsonObject parseJson() const;
|
||
|
rapidjson::Document parseRapidJson() const;
|
||
|
QByteArray getData() const;
|
||
|
};
|
||
|
|
||
|
} // namespace chatterino
|