yatbcpp  0.0.1
Yet another Telegram Bot CPP Library
All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
Public Member Functions | Private Attributes | List of all members
yatbcpp::PhotoSize Class Reference

#include "PhotoSize.h"

Public Member Functions

 PhotoSize (std::string file_id, std::int32_t width, std::int32_t height)
 
 PhotoSize (const PhotoSize &PhotoSize)
 
void setFile_size (const std::optional< std::int32_t > &file_size)
 
const std::string & getFile_id () const
 
std::int32_t getWidth () const
 
std::int32_t getHeight () 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::optional< std::int32_t > file_size
 

Detailed Description

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

Definition at line 13 of file PhotoSize.h.

Constructor & Destructor Documentation

◆ PhotoSize() [1/2]

yatbcpp::PhotoSize::PhotoSize ( std::string  file_id,
std::int32_t  width,
std::int32_t  height 
)

◆ PhotoSize() [2/2]

PhotoSize::PhotoSize ( const PhotoSize PhotoSize)

Definition at line 19 of file PhotoSize.cc.

Member Function Documentation

◆ getFile_id()

const string & PhotoSize::getFile_id ( ) const

Definition at line 38 of file PhotoSize.cc.

◆ getFile_size()

const optional< int > & PhotoSize::getFile_size ( ) const

Definition at line 50 of file PhotoSize.cc.

◆ getHeight()

int PhotoSize::getHeight ( ) const

Definition at line 46 of file PhotoSize.cc.

◆ getWidth()

int PhotoSize::getWidth ( ) const

Definition at line 42 of file PhotoSize.cc.

◆ setFile_size()

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

Definition at line 30 of file PhotoSize.cc.

Member Data Documentation

◆ file_id

std::string yatbcpp::PhotoSize::file_id
private

Definition at line 31 of file PhotoSize.h.

◆ file_size

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

Definition at line 34 of file PhotoSize.h.

◆ height

std::int32_t yatbcpp::PhotoSize::height
private

Definition at line 33 of file PhotoSize.h.

◆ width

std::int32_t yatbcpp::PhotoSize::width
private

Definition at line 32 of file PhotoSize.h.


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