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

#include "Video.h"

Public Member Functions

 Video (std::string file_id, std::int32_t width, std::int32_t height, std::int32_t duration)
 
 Video (const Video &Video)
 
const std::string & getFile_id () const
 
void setThumb (const std::optional< PhotoSize > &thumb)
 
void setMime_type (const std::optional< std::string > &mime_type)
 
void setFile_size (const std::optional< std::int32_t > &file_size)
 
std::int32_t getWidth () const
 
std::int32_t getHeight () const
 
std::int32_t getDuration () const
 
const std::optional< PhotoSize > & getThumb () 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 width
 
std::int32_t height
 
std::int32_t duration
 
std::optional< PhotoSizethumb
 
std::optional< std::string > mime_type
 
std::optional< std::int32_t > file_size
 

Detailed Description

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

Definition at line 14 of file Video.h.

Constructor & Destructor Documentation

◆ Video() [1/2]

yatbcpp::Video::Video ( std::string  file_id,
std::int32_t  width,
std::int32_t  height,
std::int32_t  duration 
)

◆ Video() [2/2]

Video::Video ( const Video Video)

Definition at line 19 of file Video.cc.

Member Function Documentation

◆ getDuration()

int32_t Video::getDuration ( ) const

Definition at line 60 of file Video.cc.

◆ getFile_id()

const string & Video::getFile_id ( ) const

Definition at line 48 of file Video.cc.

◆ getFile_size()

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

Definition at line 72 of file Video.cc.

◆ getHeight()

int32_t Video::getHeight ( ) const

Definition at line 56 of file Video.cc.

◆ getMime_type()

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

Definition at line 68 of file Video.cc.

◆ getThumb()

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

Definition at line 64 of file Video.cc.

◆ getWidth()

int32_t Video::getWidth ( ) const

Definition at line 52 of file Video.cc.

◆ setFile_size()

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

Definition at line 40 of file Video.cc.

◆ setMime_type()

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

Definition at line 36 of file Video.cc.

◆ setThumb()

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

Definition at line 32 of file Video.cc.

Member Data Documentation

◆ duration

std::int32_t yatbcpp::Video::duration
private

Definition at line 46 of file Video.h.

◆ file_id

std::string yatbcpp::Video::file_id
private

Definition at line 43 of file Video.h.

◆ file_size

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

Definition at line 49 of file Video.h.

◆ height

std::int32_t yatbcpp::Video::height
private

Definition at line 45 of file Video.h.

◆ mime_type

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

Definition at line 48 of file Video.h.

◆ thumb

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

Definition at line 47 of file Video.h.

◆ width

std::int32_t yatbcpp::Video::width
private

Definition at line 44 of file Video.h.


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