qTbot 0.2.123.6f57966
qTbot is base back end library for your c++ Qt projects.
ijsonbasedobject.h
Go to the documentation of this file.
1//#
2//# Copyright (C) 2023-2026 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
9#ifndef IJSONBASEDOBJECT_H
10#define IJSONBASEDOBJECT_H
11
12#include "qjsonobject.h"
13#include "global.h"
14namespace qTbot {
15
19class QTBOT_EXPORT IJsonBasedObject
20{
21public:
26
31 IJsonBasedObject(const QJsonObject &newRawJson);
32
37 const QJsonObject& rawJson() const;
38
43 virtual void setRawJson(const QJsonObject &newRawJson);
44
45private:
46 QJsonObject _rawJson;
47};
48
49}
50#endif // IJSONBASEDOBJECT_H
const QJsonObject & rawJson() const
rawJson Telegram uses a rest api with json objects. So all received messages are parsed into a json o...
IJsonBasedObject()
IJsonBasedObject default constructor.
virtual void setRawJson(const QJsonObject &newRawJson)
setRawJson This method sets a new raw json data of the object.