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

#include "Voice.h"

Public Member Functions

 Voice (std::string file_id, std::int32_t duration)
 
 Voice (const Voice &Voice)
 
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
 
std::int32_t getDuration () 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::int32_t duration
 
std::optional< std::string > mime_type
 
std::optional< std::int32_t > file_size
 

Detailed Description

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

Definition at line 13 of file Voice.h.

Constructor & Destructor Documentation

◆ Voice() [1/2]

yatbcpp::Voice::Voice ( std::string  file_id,
std::int32_t  duration 
)

◆ Voice() [2/2]

Voice::Voice ( const Voice Voice)

Definition at line 18 of file Voice.cc.

Member Function Documentation

◆ getDuration()

int32_t Voice::getDuration ( ) const

Definition at line 47 of file Voice.cc.

◆ getFile_id()

const string & Voice::getFile_id ( ) const

Definition at line 43 of file Voice.cc.

◆ getFile_size()

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

Definition at line 55 of file Voice.cc.

◆ getMime_type()

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

Definition at line 51 of file Voice.cc.

◆ setFile_size()

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

Definition at line 35 of file Voice.cc.

◆ setMime_type()

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

Definition at line 31 of file Voice.cc.

Member Data Documentation

◆ duration

std::int32_t yatbcpp::Voice::duration
private

Definition at line 34 of file Voice.h.

◆ file_id

std::string yatbcpp::Voice::file_id
private

Definition at line 33 of file Voice.h.

◆ file_size

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

Definition at line 36 of file Voice.h.

◆ mime_type

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

Definition at line 35 of file Voice.h.


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