qTbot 0.89.ee6949a
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>

Public Member Functions

 IJsonBasedObject ()
 
 IJsonBasedObject (const QJsonObject &newRawJson)
 
const QJsonObject & rawJson () const
 rawJson Telegram use rest api with json objects. So all received messages will be parsed in to jsobject.
 
virtual void setRawJson (const QJsonObject &newRawJson)
 setRawJson this method convert jsobject into telegram message.
 

Detailed Description

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

Definition at line 19 of file ijsonbasedobject.h.

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

Constructor & Destructor Documentation

◆ IJsonBasedObject() [1/2]

qTbot::IJsonBasedObject::IJsonBasedObject ( )

Definition at line 12 of file ijsonbasedobject.cpp.

◆ IJsonBasedObject() [2/2]

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

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 use rest api with json objects. So all received messages will be parsed in to jsobject.

Returns
js implementation of object.

Definition at line 21 of file ijsonbasedobject.cpp.

◆ setRawJson()

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

setRawJson this method convert jsobject into telegram message.

Parameters
newRawJsonnew data for telegram message.

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: