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_simplemethodJSON Class Reference

#include "telegram_simplemethodJSON.h"

Inheritance diagram for yatbcpp::telegram_simplemethodJSON:
Inheritance graph
[legend]

Public Member Functions

 telegram_simplemethodJSON (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 bool perform_simplerequestJSON (Token T, telegram_simplemethodJSON &method_body)
 

Protected Attributes

std::string functionname
 

Detailed Description

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 18 of file telegram_simplemethodJSON.h.

Constructor & Destructor Documentation

◆ telegram_simplemethodJSON()

yatbcpp::telegram_simplemethodJSON::telegram_simplemethodJSON ( std::string  functionname)
inline

Definition at line 21 of file telegram_simplemethodJSON.h.

Member Function Documentation

◆ getFunctionname()

const std::string& yatbcpp::telegram_simplemethodJSON::getFunctionname ( ) const
inline

returns the Functionname

Returns

Definition at line 79 of file telegram_simplemethodJSON.h.

◆ perform_simplerequestJSON()

static bool yatbcpp::telegram_simplemethodJSON::perform_simplerequestJSON ( Token  T,
telegram_simplemethodJSON method_body 
)
inlinestatic

Function for Telegram Api which only returns a boolean value

Parameters
T
method_body
Returns

Definition at line 37 of file telegram_simplemethodJSON.h.

Here is the call graph for this function:

◆ toJson()

virtual Json::Value yatbcpp::telegram_simplemethodJSON::toJson ( )
inlinevirtual

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

Returns

Reimplemented in yatbcpp::answerInlineQuery.

Definition at line 73 of file telegram_simplemethodJSON.h.

◆ WriteCallback()

static size_t yatbcpp::telegram_simplemethodJSON::WriteCallback ( void *  contents,
size_t  size,
size_t  nmemb,
void *  stringptr 
)
inlinestatic

Definition at line 25 of file telegram_simplemethodJSON.h.

Member Data Documentation

◆ functionname

std::string yatbcpp::telegram_simplemethodJSON::functionname
protected

Definition at line 84 of file telegram_simplemethodJSON.h.


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