1 #ifndef CPPGRAM_PHOTO_SIZE_HPP 2 #define CPPGRAM_PHOTO_SIZE_HPP 4 #include <experimental/optional> 38 : file_id( json_photo_size[
"file_id"].asString() )
39 , width( json_photo_size[
"width"].asUInt() )
40 , height( json_photo_size[
"height"].asUInt() )
42 if ( !json_photo_size[
"file_size"].isNull() )
44 file_size.emplace( json_photo_size[
"file_size"].asUInt() );
std::experimental::optional< uint32_t > file_size
Optional. File size
Definition: photo_size.hpp:35
A photo or thumbnail.
Definition: photo_size.hpp:20
std::string file_id
Unique identifier for this file.
Definition: photo_size.hpp:26
uint_fast32_t width
Photo width.
Definition: photo_size.hpp:29
main namespace for Cppgram
uint_fast32_t height
Photo height.
Definition: photo_size.hpp:29