top | up | prev | next

CloseConnection Struct

Definition at line 109 of MessageBody.hpp

Constructors

CloseConnection()
CloseConnection(JsonValue* value)

Member Functions

std::unique_ptr<JsonValue> ToJson() const

Member Variables

std::string error
std::string info

Constructor Details

CloseConnection Constructor

CloseConnection::CloseConnection()

Definition at line 243 of MessageBody.cpp :
243 : info()error()
244 {
245 }


Declaration at line 111 of MessageBody.hpp


CloseConnection Constructor

CloseConnection::CloseConnection(JsonValue * value)

Definition at line 257 of MessageBody.cpp :
258 {
259     sngjson::json::FromJson(value"info"info);
260     sngjson::json::FromJson(value"error"error);
261 }


Declaration at line 112 of MessageBody.hpp


Member Function Details

ToJson Member Function

std::unique_ptr<JsonValue > CloseConnection::ToJson() const

Definition at line 247 of MessageBody.cpp :
248 {
249     std::unique_ptr<soulng::util::JsonObject> object(new soulng::util::JsonObject());
250     std::unique_ptr<soulng::util::JsonValue> fieldValue0 = sngjson::json::ToJson(info);
251     object->AddField(U"info"std::move(fieldValue0));
252     std::unique_ptr<soulng::util::JsonValue> fieldValue1 = sngjson::json::ToJson(error);
253     object->AddField(U"error"std::move(fieldValue1));
254     return object;
255 }


Declaration at line 113 of MessageBody.hpp


top | up | prev | next