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_methodMultipart< RETURNTYPE > Class Template Reference

#include "telegram_methodMultipart.h"

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

Public Member Functions

 telegram_methodMultipart (std::string functionname)
 
virtual void add_to_post (struct curl_httppost **start, struct curl_httppost **end)
 
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_requestMultipart (Token T, telegram_methodMultipart< RETURNTYPE > &method_body)
 

Protected Attributes

std::string functionname
 

Detailed Description

template<class RETURNTYPE>
class yatbcpp::telegram_methodMultipart< RETURNTYPE >

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

Template Parameters
RETURNTYPE

Definition at line 17 of file telegram_methodMultipart.h.

Constructor & Destructor Documentation

◆ telegram_methodMultipart()

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

Definition at line 20 of file telegram_methodMultipart.h.

Member Function Documentation

◆ add_to_post()

template<class RETURNTYPE>
virtual void yatbcpp::telegram_methodMultipart< RETURNTYPE >::add_to_post ( struct curl_httppost **  start,
struct curl_httppost **  end 
)
inlinevirtual

Method Required for derived classes so they can be made into Multipart object The Post Parts have to be added in it , upon end of request it is deleted in perform_requestMultipart

Returns

Reimplemented in yatbcpp::sendAudio, yatbcpp::sendDocument, yatbcpp::sendPhoto, yatbcpp::sendVideo, and yatbcpp::sendVoice.

Definition at line 77 of file telegram_methodMultipart.h.

◆ getFunctionname()

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

returns the Functionname

Returns

Definition at line 83 of file telegram_methodMultipart.h.

◆ perform_requestMultipart()

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

Definition at line 30 of file telegram_methodMultipart.h.

◆ WriteCallback()

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

Definition at line 22 of file telegram_methodMultipart.h.

Member Data Documentation

◆ functionname

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

Definition at line 88 of file telegram_methodMultipart.h.


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