1 #include "ChatMessage.hpp" 3 #include <samchon/library/XML.hpp> 13 ChatMessage::ChatMessage()
19 this->
orator = xml->getProperty(
"orator");
20 this->
message = xml->getProperty(
"message");
22 if(xml->hasProperty(
"listener") ==
true)
23 this->
listener = xml->getProperty(
"listener");
38 xml->setProperty(
"orator",
orator);
39 xml->setProperty(
"message",
message);
42 xml->setProperty(
"listener",
listener);
std::string listener
A listener, target of whispering.
An entity, a standard data class.
virtual auto toXML() const -> std::shared_ptr< library::XML >
Get an XML object represents the Entity.
A chat service inherited from cloud service.
std::string message
A message, what to say.
virtual void construct(std::shared_ptr< library::XML >)
Construct data of the Entity from an XML object.
auto getListener() const -> std::string
Get listener.
virtual auto toXML() const -> std::shared_ptr< library::XML >
Get an XML object represents the Entity.
Package of network protocol and libraries.
std::string orator
An orator, who told.
XML is a class representing xml object.