mirror of
https://gitlab.com/comunic/comunicwatcher
synced 2024-10-22 22:53:24 +00:00
26 lines
340 B
C
26 lines
340 B
C
|
/**
|
||
|
* This class contains the response to an API request
|
||
|
*
|
||
|
* @author Pierre Hubert
|
||
|
*/
|
||
|
|
||
|
#include <QByteArray>
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
class APIResponse
|
||
|
{
|
||
|
public:
|
||
|
APIResponse(int mCode, QByteArray content);
|
||
|
|
||
|
int getCode() const;
|
||
|
|
||
|
QByteArray getContent() const;
|
||
|
|
||
|
bool isError();
|
||
|
|
||
|
private:
|
||
|
int mCode;
|
||
|
QByteArray mContent;
|
||
|
};
|