yatbcpp  0.0.1
Yet another Telegram Bot CPP Library
Public Member Functions | Private Attributes | List of all members
yatbcpp::Document Class Reference

#include "Document.h"

Public Member Functions

 Document (std::string file_id)
 
 Document (const Document &Document)
 
void setThumb (const std::optional< PhotoSize > &thumb)
 
void setFile_name (const std::optional< std::string > &file_name)
 
void setMime_type (const std::optional< std::string > &mime_type)
 
void setFile_size (const std::optional< std::int32_t > &file_size)
 
const std::string & getFile_id () const
 
const std::optional< PhotoSize > & getThumb () const
 
const std::optional< std::string > & getFile_name () const
 
const std::optional< std::string > & getMime_type () const
 
const std::optional< std::int32_t > & getFile_size () const
 

Private Attributes

std::string file_id
 
std::optional< PhotoSizethumb
 
std::optional< std::string > file_name
 
std::optional< std::string > mime_type
 
std::optional< std::int32_t > file_size
 

Detailed Description

See also https://core.telegram.org/bots/api#document

Definition at line 11 of file Document.h.

Constructor & Destructor Documentation

◆ Document() [1/2]

Document::Document ( std::string  file_id)

Definition at line 13 of file Document.cc.

◆ Document() [2/2]

Document::Document ( const Document Document)

Definition at line 19 of file Document.cc.

Member Function Documentation

◆ getFile_id()

const string & Document::getFile_id ( ) const

Definition at line 53 of file Document.cc.

◆ getFile_name()

const optional< string > & Document::getFile_name ( ) const

Definition at line 61 of file Document.cc.

◆ getFile_size()

const optional< int32_t > & Document::getFile_size ( ) const

Definition at line 69 of file Document.cc.

◆ getMime_type()

const optional< string > & Document::getMime_type ( ) const

Definition at line 65 of file Document.cc.

◆ getThumb()

const optional< PhotoSize > & Document::getThumb ( ) const

Definition at line 57 of file Document.cc.

◆ setFile_name()

void Document::setFile_name ( const std::optional< std::string > &  file_name)

Definition at line 37 of file Document.cc.

◆ setFile_size()

void Document::setFile_size ( const std::optional< std::int32_t > &  file_size)

Definition at line 45 of file Document.cc.

◆ setMime_type()

void Document::setMime_type ( const std::optional< std::string > &  mime_type)

Definition at line 41 of file Document.cc.

◆ setThumb()

void Document::setThumb ( const std::optional< PhotoSize > &  thumb)

Definition at line 33 of file Document.cc.

Member Data Documentation

◆ file_id

std::string yatbcpp::Document::file_id
private

Definition at line 37 of file Document.h.

◆ file_name

std::optional<std::string> yatbcpp::Document::file_name
private

Definition at line 39 of file Document.h.

◆ file_size

std::optional<std::int32_t> yatbcpp::Document::file_size
private

Definition at line 41 of file Document.h.

◆ mime_type

std::optional<std::string> yatbcpp::Document::mime_type
private

Definition at line 40 of file Document.h.

◆ thumb

std::optional<PhotoSize> yatbcpp::Document::thumb
private

Definition at line 38 of file Document.h.


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