|
qTbot 0.2.123.6f57966
qTbot is base back end library for your c++ Qt projects.
|
The telegramcontact class contains information about user contact. More...
#include <telegramcontact.h>


Public Member Functions | |
| TelegramContact () | |
| TelegramContact default constructor. | |
| TelegramContact (const QJsonObject &jsonObject) | |
| Constructs a Contact object from a JSON object. | |
| unsigned long long | userIdInt () const |
| userIdInt This is the numeric id of the user contact. | |
| QVariant | userId () const |
| userId This is the id of the user contact. | |
| QString | firstName () const |
| firstName Returns the first name of the contact. | |
| QString | lastName () const |
| lastName Returns the last name of the contact. | |
| QString | username () const |
| username Returns the username of the contact. | |
| QString | phone () const |
| phone Returns the phone number of the contact. | |
| QString | languageCode () const |
| languageCode Returns the language code of the contact. | |
| 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 telegramcontact class contains information about user contact.
Definition at line 19 of file telegramcontact.h.
| qTbot::TelegramContact::TelegramContact | ( | ) |
TelegramContact default constructor.
Definition at line 11 of file telegramcontact.cpp.
| qTbot::TelegramContact::TelegramContact | ( | const QJsonObject & | jsonObject | ) |
Constructs a Contact object from a JSON object.
| jsonObject | The JSON object containing contact data. |
Definition at line 16 of file telegramcontact.cpp.

| QString qTbot::TelegramContact::firstName | ( | ) | const |
firstName Returns the first name of the contact.
Definition at line 29 of file telegramcontact.cpp.

| QString qTbot::TelegramContact::languageCode | ( | ) | const |
languageCode Returns the language code of the contact.
Definition at line 45 of file telegramcontact.cpp.

| QString qTbot::TelegramContact::lastName | ( | ) | const |
lastName Returns the last name of the contact.
Definition at line 33 of file telegramcontact.cpp.

| QString qTbot::TelegramContact::phone | ( | ) | const |
phone Returns the phone number of the contact.
Definition at line 41 of file telegramcontact.cpp.

| QVariant qTbot::TelegramContact::userId | ( | ) | const |
userId This is the id of the user contact.
Definition at line 25 of file telegramcontact.cpp.

| unsigned long long qTbot::TelegramContact::userIdInt | ( | ) | const |
userIdInt This is the numeric id of the user contact.
Definition at line 21 of file telegramcontact.cpp.

| QString qTbot::TelegramContact::username | ( | ) | const |
username Returns the username of the contact.
Definition at line 37 of file telegramcontact.cpp.
