qTbot 0.87.9547b0c
qTbot is base back end library for your c++ Qt projects.
ijsonbasedobject.cpp
Go to the documentation of this file.
1//#
2//# Copyright (C) 2023-2024 QuasarApp.
3//# Distributed under the GPLv3 software license, see the accompanying
4//# Everyone is permitted to copy and distribute verbatim copies
5//# of this license document, but changing it is not allowed.
6//#
7
8#include "ijsonbasedobject.h"
9
10namespace qTbot {
11
16
17IJsonBasedObject::IJsonBasedObject(const QJsonObject &newRawJson) {
19}
20
21const QJsonObject &IJsonBasedObject::rawJson() const {
22 return _rawJson;
23}
24
25void IJsonBasedObject::setRawJson(const QJsonObject &newRawJson) {
26 _rawJson = newRawJson;
27}
28
29}
const QJsonObject & rawJson() const
rawJson Telegram use rest api with json objects. So all received messages will be parsed in to jsobje...
virtual void setRawJson(const QJsonObject &newRawJson)
setRawJson this method convert jsobject into telegram message.