yatbcpp  0.0.1
Yet another Telegram Bot CPP Library
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
yatbcpp::telegram_methodJSON< RETURNTYPE > Class Template Reference

#include "telegram_methodJSON.h"

Inheritance diagram for yatbcpp::telegram_methodJSON< RETURNTYPE >:
Inheritance graph
[legend]

Public Member Functions

 telegram_methodJSON (std::string functionname)
 
virtual Json::Value toJson ()
 
const std::string & getFunctionname () const
 

Static Public Member Functions

static size_t WriteCallback (void *contents, size_t size, size_t nmemb, void *stringptr)
 
static RETURNTYPE perform_requestJSON (Token T, telegram_methodJSON< RETURNTYPE > &method_body)
 

Protected Attributes

std::string functionname
 

Detailed Description

template<class RETURNTYPE>
class yatbcpp::telegram_methodJSON< RETURNTYPE >

Required for Methods which can be serialized to a json request, for file uploading use multipart, file types are then considered files to be uploaded

Template Parameters
RETURNTYPE

Definition at line 19 of file telegram_methodJSON.h.

Constructor & Destructor Documentation

◆ telegram_methodJSON()

template<class RETURNTYPE>
yatbcpp::telegram_methodJSON< RETURNTYPE >::telegram_methodJSON ( std::string  functionname)
inline

Definition at line 22 of file telegram_methodJSON.h.

Member Function Documentation

◆ getFunctionname()

template<class RETURNTYPE>
const std::string& yatbcpp::telegram_methodJSON< RETURNTYPE >::getFunctionname ( ) const
inline

returns the Functionname

Returns

Definition at line 80 of file telegram_methodJSON.h.

◆ perform_requestJSON()

template<class RETURNTYPE>
static RETURNTYPE yatbcpp::telegram_methodJSON< RETURNTYPE >::perform_requestJSON ( Token  T,
telegram_methodJSON< RETURNTYPE > &  method_body 
)
inlinestatic

Definition at line 35 of file telegram_methodJSON.h.

◆ toJson()

template<class RETURNTYPE>
virtual Json::Value yatbcpp::telegram_methodJSON< RETURNTYPE >::toJson ( )
inlinevirtual

Method Required for derived classes so they can be made into json object

Returns

Reimplemented in yatbcpp::sendLocation, yatbcpp::sendAudio, yatbcpp::sendDocument, yatbcpp::sendPhoto, yatbcpp::sendVideo, yatbcpp::sendVoice, yatbcpp::forwardMessage, yatbcpp::sendMessage, and yatbcpp::getMe.

Definition at line 74 of file telegram_methodJSON.h.

◆ WriteCallback()

template<class RETURNTYPE>
static size_t yatbcpp::telegram_methodJSON< RETURNTYPE >::WriteCallback ( void *  contents,
size_t  size,
size_t  nmemb,
void *  stringptr 
)
inlinestatic

Definition at line 27 of file telegram_methodJSON.h.

Member Data Documentation

◆ functionname

template<class RETURNTYPE>
std::string yatbcpp::telegram_methodJSON< RETURNTYPE >::functionname
protected

Definition at line 85 of file telegram_methodJSON.h.


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