|
qTbot 0.2.123.6f57966
qTbot is base back end library for your c++ Qt projects.
|
The iUpdate class is the main interface for all update objects. More...
#include <iupdate.h>


Public Member Functions | |
| 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 void | setRawData (const QByteArray &newRawData) |
| setRawData This method sets a new raw data value. | |
| virtual bool | isValid () const |
| isValid returns true if the update is valid else false. | |
| 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. | |
The iUpdate class is the main interface for all update objects.
| qTbot::iUpdate::iUpdate | ( | ) |
iUpdate default constructor.
Definition at line 12 of file iupdate.cpp.
|
pure virtual |
chatId This virtual function should return the id of the chat that sent this update to the bot.
Implemented in qTbot::TelegramMsg, qTbot::TelegramUpdate, and qTbot::TelegramUpdateAnswer.
|
pure virtual |
from This virtual function should return the id of the user that sent this update to the bot.
Implemented in qTbot::TelegramMsg, qTbot::TelegramUpdate, and qTbot::TelegramUpdateAnswer.
|
virtual |
isValid returns true if the update is valid else false.
Reimplemented in qTbot::IJsonBasedUpdate, qTbot::TelegramMsg, qTbot::TelegramUpdate, and qTbot::TelegramUpdateAnswer.
Definition at line 24 of file iupdate.cpp.
| const QByteArray & qTbot::iUpdate::rawData | ( | ) | const |
rawData returns the raw data of the update. The raw data is the not parsed value from the server.
Definition at line 16 of file iupdate.cpp.
|
virtual |
setRawData This method sets a new raw data value.
| newRawData | This is the new value of the rawData. |
Reimplemented in qTbot::IJsonBasedUpdate.
Definition at line 20 of file iupdate.cpp.

|
pure virtual |
updateId This method returns the numeric id of the update.
Implemented in qTbot::TelegramMsg, qTbot::TelegramUpdate, and qTbot::TelegramUpdateAnswer.