qTbot
0.2.123.6f57966
qTbot is base back end library for your c++ Qt projects.
Toggle main menu visibility
ijsonbasedobject.cpp
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
#include "
ijsonbasedobject.h
"
9
10
namespace
qTbot
{
11
12
IJsonBasedObject::IJsonBasedObject
()
13
{
14
15
}
16
17
IJsonBasedObject::IJsonBasedObject
(
const
QJsonObject &newRawJson) {
18
IJsonBasedObject::setRawJson
(newRawJson);
19
}
20
21
const
QJsonObject &
IJsonBasedObject::rawJson
()
const
{
22
return
_rawJson;
23
}
24
25
void
IJsonBasedObject::setRawJson
(
const
QJsonObject &newRawJson) {
26
_rawJson = newRawJson;
27
}
28
29
}
qTbot::IJsonBasedObject::rawJson
const QJsonObject & rawJson() const
rawJson Telegram uses a rest api with json objects. So all received messages are parsed into a json o...
Definition
ijsonbasedobject.cpp:21
qTbot::IJsonBasedObject::IJsonBasedObject
IJsonBasedObject()
IJsonBasedObject default constructor.
Definition
ijsonbasedobject.cpp:12
qTbot::IJsonBasedObject::setRawJson
virtual void setRawJson(const QJsonObject &newRawJson)
setRawJson This method sets a new raw json data of the object.
Definition
ijsonbasedobject.cpp:25
ijsonbasedobject.h
qTbot
Definition
telegramdeletemessage.cpp:8
src
qTbot
src
public
qTbot
ijsonbasedobject.cpp
Generated by
1.18.0