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

#include "VideoNote.h"

Public Member Functions

 VideoNote (std::string file_id, std::int32_t length, std::int32_t duration)
 
 VideoNote (const VideoNote &VideoNote)
 
void setThumb (const std::optional< PhotoSize > &thumb)
 
void setFile_size (const std::optional< std::int32_t > &file_size)
 
const std::string & getFile_id () const
 
std::int32_t getLength () const
 
std::int32_t getDuration () const
 
const std::optional< PhotoSize > & getThumb () const
 
const std::optional< std::int32_t > & getFile_size () const
 

Private Attributes

std::string file_id
 
std::int32_t length
 
std::int32_t duration
 
std::optional< PhotoSizethumb
 
std::optional< std::int32_t > file_size
 

Detailed Description

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

Definition at line 14 of file VideoNote.h.

Constructor & Destructor Documentation

◆ VideoNote() [1/2]

yatbcpp::VideoNote::VideoNote ( std::string  file_id,
std::int32_t  length,
std::int32_t  duration 
)

◆ VideoNote() [2/2]

VideoNote::VideoNote ( const VideoNote VideoNote)

Definition at line 18 of file VideoNote.cc.

Member Function Documentation

◆ getDuration()

int32_t VideoNote::getDuration ( ) const

Definition at line 50 of file VideoNote.cc.

◆ getFile_id()

const string & VideoNote::getFile_id ( ) const

Definition at line 42 of file VideoNote.cc.

◆ getFile_size()

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

Definition at line 58 of file VideoNote.cc.

◆ getLength()

int32_t VideoNote::getLength ( ) const

Definition at line 46 of file VideoNote.cc.

◆ getThumb()

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

Definition at line 54 of file VideoNote.cc.

◆ setFile_size()

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

Definition at line 34 of file VideoNote.cc.

◆ setThumb()

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

Definition at line 30 of file VideoNote.cc.

Member Data Documentation

◆ duration

std::int32_t yatbcpp::VideoNote::duration
private

Definition at line 39 of file VideoNote.h.

◆ file_id

std::string yatbcpp::VideoNote::file_id
private

Definition at line 37 of file VideoNote.h.

◆ file_size

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

Definition at line 41 of file VideoNote.h.

◆ length

std::int32_t yatbcpp::VideoNote::length
private

Definition at line 38 of file VideoNote.h.

◆ thumb

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

Definition at line 40 of file VideoNote.h.


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