yatbcpp  0.0.1
Yet another Telegram Bot CPP Library
PhotoSize.h
Go to the documentation of this file.
1 //
2 // Created by norbert on 23.08.17.
3 //
4 
5 #ifndef YATBCPP_PHOTOSIZE_H
6 #define YATBCPP_PHOTOSIZE_H
7 
8 #include <string>
9 #include <optional>
10 
11 namespace yatbcpp{
13  class PhotoSize {
14  public:
15  PhotoSize(std::string file_id,std::int32_t width, std::int32_t height);
16 
18 
19  void setFile_size(const std::optional<std::int32_t> &file_size);
20 
21  const std::string &getFile_id() const;
22 
23  std::int32_t getWidth() const;
24 
25  std::int32_t getHeight() const;
26 
27  const std::optional<std::int32_t> &getFile_size() const;
28 
29 
30  private:
31  std::string file_id;
32  std::int32_t width;
33  std::int32_t height;
34  std::optional<std::int32_t> file_size;
35 
36  };
37 
38 }
39 
40 #endif //YATBCPP_PHOTOSIZE_H
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