yatbcpp  0.0.1
Yet another Telegram Bot CPP Library
File.h
Go to the documentation of this file.
1 #ifndef YATBCPP_FILE_H
2 #define YATBCPP_FILE_H
3 
4 #include <string>
5 #include <optional>
6 
7 namespace yatbcpp{
9  class File {
10  public:
11  File(std::string file_id);
12 
13  File(const File& File);
14 
15  void setFile_size(const std::optional<std::int32_t> &file_size);
16 
17  void setFile_path(const std::optional<std::string> &file_path);
18 
19  const std::string &getFile_id() const;
20 
21  const std::optional<std::int32_t> &getFile_size() const;
22 
23  const std::optional<std::string> &getFile_path() const;
24 
25  private:
26  std::string file_id;
27  std::optional<std::int32_t> file_size;
28  std::optional<std::string> file_path;
29 
30  };
31 
32 }
33 
34 #endif //YATBCPP_FILE_H
std::optional< std::int32_t > file_size
Definition: File.h:27
void setFile_size(const std::optional< std::int32_t > &file_size)
Definition: File.cc:29
void setFile_path(const std::optional< std::string > &file_path)
Definition: File.cc:33
std::string file_id
Definition: File.h:26
const std::optional< std::string > & getFile_path() const
Definition: File.cc:49
Definition: Bot.h:27
const std::string & getFile_id() const
Definition: File.cc:41
const std::optional< std::int32_t > & getFile_size() const
Definition: File.cc:45
std::optional< std::string > file_path
Definition: File.h:28
File(std::string file_id)
Definition: File.cc:12