yatbcpp  0.0.1
Yet another Telegram Bot CPP Library
Video.cc
Go to the documentation of this file.
1 #include <string>
2 #include <optional>
3 #include "types/PhotoSize.h"
4 #include "types/Video.h"
5 
6 using namespace yatbcpp;
7 using namespace std;
8 
10 // Constructor Section //
12 
13 Video::Video(std::string file_id, int32_t width, int32_t height,int32_t duration):
14  file_id(file_id), width(width), height(height), duration(duration)
15 {
16 
17 }
18 
20  file_id(Video.file_id), width(Video.width), height(Video.height), duration(Video.duration)
21 {
22  thumb = Video.thumb;
23  mime_type = Video.mime_type;
24  file_size = Video.file_size;
25 }
26 
27 
29 // Setter Section //
31 
32 void Video::setThumb(const optional<PhotoSize> &thumb) {
34 }
35 
36 void Video::setMime_type(const optional<string> &mime_type) {
38 }
39 
40 void Video::setFile_size(const optional<int32_t > &file_size) {
42 }
43 
45 // Getter Section //
47 
48 const string &Video::getFile_id() const {
49  return file_id;
50 }
51 
52 int32_t Video::getWidth() const {
53  return width;
54 }
55 
56 int32_t Video::getHeight() const {
57  return height;
58 }
59 
60 int32_t Video::getDuration() const {
61  return duration;
62 }
63 
64 const optional<PhotoSize> &Video::getThumb() const {
65  return thumb;
66 }
67 
68 const optional<string> &Video::getMime_type() const {
69  return mime_type;
70 }
71 
72 const optional<int32_t > &Video::getFile_size() const {
73  return file_size;
74 }
75 
std::int32_t getDuration() const
Definition: Video.cc:60
void setFile_size(const std::optional< std::int32_t > &file_size)
Definition: Video.cc:40
const std::optional< std::string > & getMime_type() const
Definition: Video.cc:68
std::int32_t getHeight() const
Definition: Video.cc:56
void setThumb(const std::optional< PhotoSize > &thumb)
Definition: Video.cc:32
Video(std::string file_id, std::int32_t width, std::int32_t height, std::int32_t duration)
const std::string & getFile_id() const
Definition: Video.cc:48
std::int32_t getWidth() const
Definition: Video.cc:52
Definition: Bot.h:27
void setMime_type(const std::optional< std::string > &mime_type)
Definition: Video.cc:36
std::int32_t duration
Definition: Video.h:46
std::int32_t width
Definition: Video.h:44
std::string file_id
Definition: Video.h:43
std::optional< std::int32_t > file_size
Definition: Video.h:49
std::optional< PhotoSize > thumb
Definition: Video.h:47
std::int32_t height
Definition: Video.h:45
const std::optional< PhotoSize > & getThumb() const
Definition: Video.cc:64
const std::optional< std::int32_t > & getFile_size() const
Definition: Video.cc:72
std::optional< std::string > mime_type
Definition: Video.h:48