|
qTbot 0.2.123.6f57966
qTbot is base back end library for your c++ Qt projects.
|
The TelegramDocument class This is implementation of the documents objects of telegram. More...
#include <telegramdocument.h>


Public Member Functions | |
| TelegramDocument () | |
| TelegramDocument default constructor. | |
| TelegramDocument (const QJsonObject &jsonObject) | |
| Constructs a Document object from a JSON object. | |
| QString | fileName () const |
| Returns the file name of the document. | |
| QString | mimeType () const |
| Returns the MIME type of the document. | |
| Public Member Functions inherited from qTbot::TelegramFile | |
| TelegramFile () | |
| TelegramFile default constructor. | |
| TelegramFile (const QJsonObject &jsonObject) | |
| Constructs a File object from a JSON object. | |
| QString | fileId () const |
| Returns the file ID of the file. | |
| QString | fileUniqueId () const |
| Returns the unique ID of the file. | |
| int | fileSize () const |
| Returns the file size of the file. | |
| QString | takePath () |
| Returns the file path to get from the web. | |
| 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 TelegramDocument class This is implementation of the documents objects of telegram.
Definition at line 19 of file telegramdocument.h.
| qTbot::TelegramDocument::TelegramDocument | ( | ) |
TelegramDocument default constructor.
Definition at line 12 of file telegramdocument.cpp.
| qTbot::TelegramDocument::TelegramDocument | ( | const QJsonObject & | jsonObject | ) |
Constructs a Document object from a JSON object.
| jsonObject | The JSON object containing document data. |
Definition at line 17 of file telegramdocument.cpp.

| QString qTbot::TelegramDocument::fileName | ( | ) | const |
Returns the file name of the document.
Definition at line 19 of file telegramdocument.cpp.

| QString qTbot::TelegramDocument::mimeType | ( | ) | const |
Returns the MIME type of the document.
Definition at line 23 of file telegramdocument.cpp.
