yatbcpp  0.0.1
Yet another Telegram Bot CPP Library
VideoNote.h
Go to the documentation of this file.
1 //
2 // Created by norbert on 23.08.17.
3 //
4 
5 #ifndef YATBCPP_VIDEONOTE_H
6 #define YATBCPP_VIDEONOTE_H
7 
8 #include <string>
9 #include <optional>
10 #include "PhotoSize.h"
11 
12 namespace yatbcpp{
14  class VideoNote {
15  public:
16  VideoNote(std::string file_id,std::int32_t length, std::int32_t duration);
17 
19 
20 // static VideoNote fromJson(Json::Value Data);
21 
22  void setThumb(const std::optional<PhotoSize> &thumb);
23 
24  void setFile_size(const std::optional<std::int32_t> &file_size);
25 
26  const std::string &getFile_id() const;
27 
28  std::int32_t getLength() const;
29 
30  std::int32_t getDuration() const;
31 
32  const std::optional<PhotoSize> &getThumb() const;
33 
34  const std::optional<std::int32_t> &getFile_size() const;
35 
36  private:
37  std::string file_id;
38  std::int32_t length;
39  std::int32_t duration;
40  std::optional<PhotoSize> thumb;
41  std::optional<std::int32_t> file_size;
42 
43  };
44 
45 }
46 
47 #endif //YATBCPP_VIDEONOTE_H
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