1 #ifndef CPPGRAM_VOICE_HPP 2 #define CPPGRAM_VOICE_HPP 4 #include <experimental/optional> 33 std::experimental::optional<uint_fast32_t>
file_size;
35 Voice( Json::Value &json_voice )
36 : file_id( json_voice[
"file_id"].asString() )
37 , duration( json_voice[
"duration"].asUInt() )
39 if ( !json_voice[
"mime_type"].isNull() )
41 mime_type.emplace( json_voice[
"mime_type"].asString() );
44 if ( !json_voice[
"file_size"].isNull() )
46 file_size.emplace( json_voice[
"file_size"].asUInt() );
uint_fast32_t duration
Definition: voice.hpp:27
std::experimental::optional< uint_fast32_t > file_size
Definition: voice.hpp:33
std::experimental::optional< std::string > mime_type
Definition: voice.hpp:30
std::string file_id
Definition: voice.hpp:24
main namespace for Cppgram