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