1
0
mirror of https://gitlab.com/comunic/comunicterm synced 2024-07-01 13:14:31 +00:00
comunicterm/apiresponse.h

28 lines
372 B
C++

/**
* API Response
*
* @author Pierre HUBERT
*/
#pragma once
#include <cpprest/json.h>
class ApiResponse
{
public:
ApiResponse(int code, web::json::value content);
web::json::value content() const;
int code() const;
web::json::object object() const;
web::json::array array() const;
private:
int mCode;
web::json::value mContent;
};