qTbot 0.89.ee6949a
qTbot is base back end library for your c++ Qt projects.
|
The iMessage class - is main interface for all messages objects. More...
#include <iupdate.h>
Public Member Functions | |
iUpdate () | |
const QByteArray & | rawData () const |
rawData returns raw data of the message. The raw data is not parsed value form the server. | |
virtual void | setRawData (const QByteArray &newRawData) |
setRawData This method sets new raw data value. | |
virtual bool | isValid () const |
isValid return true if the message is valid else false. | |
virtual QString | from () const =0 |
from This virtual function should return name of the user that sent this message to bot. | |
virtual QVariant | chatId () const =0 |
from This virtual function should return name of the chat when sent this message to bot. | |
virtual unsigned long long | updateId () const =0 |
updateId This method returns numeric id of the update. | |
The iMessage class - is main interface for all messages objects.
qTbot::iUpdate::iUpdate | ( | ) |
Definition at line 12 of file iupdate.cpp.
|
pure virtual |
from This virtual function should return name of the chat when sent this message to bot.
Implemented in qTbot::TelegramMsg, qTbot::TelegramUpdate, and qTbot::TelegramUpdateAnswer.
|
pure virtual |
from This virtual function should return name of the user that sent this message to bot.
Implemented in qTbot::TelegramMsg, qTbot::TelegramUpdate, and qTbot::TelegramUpdateAnswer.
|
virtual |
isValid return true if the message 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 raw data of the message. The raw data is not parsed value form the server.
Definition at line 16 of file iupdate.cpp.
|
virtual |
setRawData This method sets new raw data value.
newRawData | This is new value of the rawData. |
Reimplemented in qTbot::IJsonBasedUpdate.
Definition at line 20 of file iupdate.cpp.
|
pure virtual |
updateId This method returns numeric id of the update.
Implemented in qTbot::TelegramMsg, qTbot::TelegramUpdate, and qTbot::TelegramUpdateAnswer.