|
TT Client Library 1.0.0
C++ library for Tandem Tales clients.
|
The report message is sent from an agent to the server to indicate the value of a question on a survey about the session they are playing. More...
#include <tt/io/Report.h>


Public Member Functions | |
| Report (const std::string &item, const std::string &value, const std::string &comment) | |
| Constructs a new report message. | |
| std::string | toString () const override |
| Returns a string representation of this object. | |
| std::string | type () const override |
| Type used for JSON deserialization. | |
| Public Member Functions inherited from tt::Message | |
| Message () | |
| Constructs a message. | |
| const Client * | getClient () const |
Returns the tt::Client who sent this message, or null if this message was sent by the server. | |
| void | setClient (const Client *client) |
Sets the tt::Client who sent this message. | |
The report message is sent from an agent to the server to indicate the value of a question on a survey about the session they are playing.
| tt::Report::Report | ( | const std::string & | item, |
| const std::string & | value, | ||
| const std::string & | comment ) |
Constructs a new report message.
| item | the name or ID of the survey question |
| value | the answer the agent gives to the question |
| comment | a comment explaining the answer, or empty |
|
overridevirtual |
Returns a string representation of this object.
Reimplemented from tt::Message.
|
inlineoverridevirtual |
Type used for JSON deserialization.
Implements tt::Message.