yatbcpp  0.0.1
Yet another Telegram Bot CPP Library
File.cc
Go to the documentation of this file.
1 #include <string>
2 #include <optional>
3 #include "types/File.h"
4 
5 using namespace yatbcpp;
6 using namespace std;
7 
9 // Constructor Section //
11 
12 File::File(std::string file_id):
13  file_id(file_id)
14 {
15 
16 }
17 
19  file_id(File.getFile_id())
20 {
21  file_size = File.file_size;
22  file_path = File.file_path;
23 }
24 
26 // Setter Section //
28 
29 void File::setFile_size(const optional<int32_t> &file_size) {
31 }
32 
33 void File::setFile_path(const optional<string> &file_path) {
35 }
36 
38 // Getter Section //
40 
41 const string &File::getFile_id() const {
42  return file_id;
43 }
44 
45 const optional<int32_t> &File::getFile_size() const {
46  return file_size;
47 }
48 
49 const optional<string> &File::getFile_path() const {
50  return file_path;
51 }
52 
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