yatbcpp  0.0.1
Yet another Telegram Bot CPP Library
PhotoSize.cc
Go to the documentation of this file.
1 #include <string>
2 #include <optional>
3 #include "types/telegram_type.h"
4 #include "types/PhotoSize.h"
5 
6 using namespace yatbcpp;
7 using namespace std;
8 
10 // Constructor Section //
12 
13 PhotoSize::PhotoSize(std::string file_id, int width, int height):
14  file_id(file_id), width(width), height(height)
15 {
16 
17 }
18 
20  file_id(PhotoSize.file_id), width(PhotoSize.width), height(PhotoSize.height)
21 {
22  file_size = PhotoSize.file_size;
23 }
24 
25 
27 // Setter Section //
29 
30 void PhotoSize::setFile_size(const optional<int> &file_size) {
32 }
33 
35 // Getter Section //
37 
38 const string &PhotoSize::getFile_id() const {
39  return file_id;
40 }
41 
42 int PhotoSize::getWidth() const {
43  return width;
44 }
45 
46 int PhotoSize::getHeight() const {
47  return height;
48 }
49 
50 const optional<int> &PhotoSize::getFile_size() const {
51  return file_size;
52 }
53 
PhotoSize(std::string file_id, std::int32_t width, std::int32_t height)
void setFile_size(const std::optional< std::int32_t > &file_size)
Definition: PhotoSize.cc:30
std::int32_t height
Definition: PhotoSize.h:33
std::int32_t getHeight() const
Definition: PhotoSize.cc:46
const std::optional< std::int32_t > & getFile_size() const
Definition: PhotoSize.cc:50
Definition: Bot.h:27
std::int32_t width
Definition: PhotoSize.h:32
const std::string & getFile_id() const
Definition: PhotoSize.cc:38
std::string file_id
Definition: PhotoSize.h:31
std::int32_t getWidth() const
Definition: PhotoSize.cc:42
std::optional< std::int32_t > file_size
Definition: PhotoSize.h:34