1
0
mirror of https://gitlab.com/comunic/comunicterm synced 2024-11-16 18:41:07 +00:00
comunicterm/apiresponse.cpp

30 lines
421 B
C++
Raw Normal View History

2020-01-07 20:53:27 +00:00
#include "apiresponse.h"
using namespace web;
ApiResponse::ApiResponse(int code, json::value content)
: mCode(code), mContent(content)
{
}
json::value ApiResponse::content() const
{
return mContent;
}
int ApiResponse::code() const
{
return mCode;
}
json::object ApiResponse::object() const
{
return mContent.as_object();
}
json::array ApiResponse::array() const
{
return mContent.as_array();
}