mirror of
https://gitlab.com/comunic/comunicterm
synced 2024-10-04 22:12:44 +00:00
28 lines
372 B
C++
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;
|
|
};
|