comunicwatcher/apiresponse.h

26 lines
340 B
C
Raw Normal View History

2020-06-12 16:20:53 +00:00
/**
* 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;
};