yatbcpp  0.0.1
Yet another Telegram Bot CPP Library
VideoNote.cc
Go to the documentation of this file.
1 #include <string>
2 #include <optional>
3 #include "types/VideoNote.h"
4 
5 using namespace yatbcpp;
6 using namespace std;
7 
9 // Constructor Section //
11 
12 VideoNote::VideoNote(std::string file_id, int32_t length, int32_t duration):
13  file_id(file_id), length(length), duration(duration)
14 {
15 
16 }
17 
19  file_id(VideoNote.file_id), length(VideoNote.length), duration(VideoNote.duration)
20 {
21  thumb = VideoNote.thumb;
22  file_size = VideoNote.file_size;
23 }
24 
25 
27 // Setter Section //
29 
30 void VideoNote::setThumb(const optional<PhotoSize> &thumb) {
32 }
33 
34 void VideoNote::setFile_size(const optional<int32_t > &file_size) {
36 }
37 
39 // Getter Section //
41 
42 const string &VideoNote::getFile_id() const {
43  return file_id;
44 }
45 
46 int32_t VideoNote::getLength() const {
47  return length;
48 }
49 
50 int32_t VideoNote::getDuration() const {
51  return duration;
52 }
53 
54 const optional<PhotoSize> &VideoNote::getThumb() const {
55  return thumb;
56 }
57 
58 const optional<int32_t > &VideoNote::getFile_size() const {
59  return file_size;
60 }
std::int32_t getLength() const
Definition: VideoNote.cc:46
const std::string & getFile_id() const
Definition: VideoNote.cc:42
std::string file_id
Definition: VideoNote.h:37
VideoNote(std::string file_id, std::int32_t length, std::int32_t duration)
std::optional< PhotoSize > thumb
Definition: VideoNote.h:40
const std::optional< PhotoSize > & getThumb() const
Definition: VideoNote.cc:54
std::optional< std::int32_t > file_size
Definition: VideoNote.h:41
Definition: Bot.h:27
std::int32_t duration
Definition: VideoNote.h:39
const std::optional< std::int32_t > & getFile_size() const
Definition: VideoNote.cc:58
std::int32_t getDuration() const
Definition: VideoNote.cc:50
void setFile_size(const std::optional< std::int32_t > &file_size)
Definition: VideoNote.cc:34
std::int32_t length
Definition: VideoNote.h:38
void setThumb(const std::optional< PhotoSize > &thumb)
Definition: VideoNote.cc:30