|
qTbot 0.2.123.6f57966
qTbot is base back end library for your c++ Qt projects.
|
The IJsonBasedUpdate class This is an update that has a json structure. More...
#include <ijsonbasedupdate.h>


Public Member Functions | |
| IJsonBasedUpdate () | |
| IJsonBasedUpdate default constructor. | |
| bool | isValid () const override |
| isValid returns true if the update is valid else false. | |
| void | setRawData (const QByteArray &newRawData) override |
| setRawData This method sets a new raw data value. | |
| Public Member Functions inherited from qTbot::iUpdate | |
| iUpdate () | |
| iUpdate default constructor. | |
| const QByteArray & | rawData () const |
| rawData returns the raw data of the update. The raw data is the not parsed value from the server. | |
| virtual QString | from () const =0 |
| from This virtual function should return the id of the user that sent this update to the bot. | |
| virtual QVariant | chatId () const =0 |
| chatId This virtual function should return the id of the chat that sent this update to the bot. | |
| virtual unsigned long long | updateId () const =0 |
| updateId This method returns the numeric id of the update. | |
| Public Member Functions inherited from qTbot::IJsonBasedObject | |
| IJsonBasedObject () | |
| IJsonBasedObject default constructor. | |
| IJsonBasedObject (const QJsonObject &newRawJson) | |
| IJsonBasedObject constructs the object from a raw json value. | |
| const QJsonObject & | rawJson () const |
| rawJson Telegram uses a rest api with json objects. So all received messages are parsed into a json object. | |
| virtual void | setRawJson (const QJsonObject &newRawJson) |
| setRawJson This method sets a new raw json data of the object. | |
The IJsonBasedUpdate class This is an update that has a json structure.
Definition at line 22 of file ijsonbasedupdate.h.
| qTbot::IJsonBasedUpdate::IJsonBasedUpdate | ( | ) |
IJsonBasedUpdate default constructor.
Definition at line 14 of file ijsonbasedupdate.cpp.
|
overridevirtual |
isValid returns true if the update is valid else false.
Reimplemented from qTbot::iUpdate.
Reimplemented in qTbot::TelegramMsg, qTbot::TelegramUpdate, and qTbot::TelegramUpdateAnswer.
Definition at line 18 of file ijsonbasedupdate.cpp.

|
overridevirtual |
setRawData This method sets a new raw data value.
| newRawData | This is the new value of the rawData. |
Reimplemented from qTbot::iUpdate.
Definition at line 22 of file ijsonbasedupdate.cpp.
