qTbot 0.2.123.6f57966
qTbot is base back end library for your c++ Qt projects.
qTbot::IJsonBasedObject Class Reference

The IJsonBasedObject class This is base interface for all json base objects. More...

#include <ijsonbasedobject.h>

Inheritance diagram for qTbot::IJsonBasedObject:
Inheritance graph
Collaboration diagram for qTbot::IJsonBasedObject:
Collaboration graph

Public Member Functions

 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.

Detailed Description

The IJsonBasedObject class This is base interface for all json base objects.

Definition at line 19 of file ijsonbasedobject.h.

Constructor & Destructor Documentation

◆ IJsonBasedObject() [1/2]

qTbot::IJsonBasedObject::IJsonBasedObject ( )

IJsonBasedObject default constructor.

Definition at line 12 of file ijsonbasedobject.cpp.

Here is the caller graph for this function:

◆ IJsonBasedObject() [2/2]

qTbot::IJsonBasedObject::IJsonBasedObject ( const QJsonObject & newRawJson)

IJsonBasedObject constructs the object from a raw json value.

Parameters
newRawJsonThis is the raw json data of the object.

Definition at line 17 of file ijsonbasedobject.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ rawJson()

const QJsonObject & qTbot::IJsonBasedObject::rawJson ( ) const

rawJson Telegram uses a rest api with json objects. So all received messages are parsed into a json object.

Returns
json implementation of the object.

Definition at line 21 of file ijsonbasedobject.cpp.

◆ setRawJson()

void qTbot::IJsonBasedObject::setRawJson ( const QJsonObject & newRawJson)
virtual

setRawJson This method sets a new raw json data of the object.

Parameters
newRawJsonThis is the new json data of the object.

Definition at line 25 of file ijsonbasedobject.cpp.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: