yatbcpp  0.0.1
Yet another Telegram Bot CPP Library
Voice.h
Go to the documentation of this file.
1 //
2 // Created by norbert on 23.08.17.
3 //
4 
5 #ifndef YATBCPP_VOICE_H
6 #define YATBCPP_VOICE_H
7 
8 #include <string>
9 #include <optional>
10 
11 namespace yatbcpp{
13  class Voice {
14  public:
15  Voice(std::string file_id, std::int32_t duration);
16 
17  Voice(const Voice& Voice);
18 
19  void setMime_type(const std::optional<std::string> &mime_type);
20 
21  void setFile_size(const std::optional<std::int32_t> &file_size);
22 
23  const std::string &getFile_id() const;
24 
25  std::int32_t getDuration() const;
26 
27  const std::optional<std::string> &getMime_type() const;
28 
29  const std::optional<std::int32_t> &getFile_size() const;
30 
31 
32  private:
33  std::string file_id;
34  std::int32_t duration;
35  std::optional<std::string> mime_type;
36  std::optional<std::int32_t> file_size;
37 
38  };
39 
40 }
41 
42 #endif //YATBCPP_VOICE_H
std::string file_id
Definition: Voice.h:33
std::int32_t duration
Definition: Voice.h:34
void setMime_type(const std::optional< std::string > &mime_type)
Definition: Voice.cc:31
std::optional< std::int32_t > file_size
Definition: Voice.h:36
Definition: Bot.h:27
std::int32_t getDuration() const
Definition: Voice.cc:47
std::optional< std::string > mime_type
Definition: Voice.h:35
const std::optional< std::string > & getMime_type() const
Definition: Voice.cc:51
const std::string & getFile_id() const
Definition: Voice.cc:43
Voice(std::string file_id, std::int32_t duration)
void setFile_size(const std::optional< std::int32_t > &file_size)
Definition: Voice.cc:35
const std::optional< std::int32_t > & getFile_size() const
Definition: Voice.cc:55