LibTgBotPP
 All Classes Namespaces Files Functions Variables Typedefs Macros
Video.cc
Go to the documentation of this file.
1 #include "Telegram/Video.h"
2 
3 Telegram::Video::Video(Json::Value json) {
4 
5  this->file_id = json["file_id"].asString();
6  this->width = json["width"].asInt64();
7  this->height = json["height"].asInt64();
8  this->duration = json["duration"].asInt64();
9  this->thumb = new PhotoSize(json["thumb"]);
10  this->mime_type = json["mime_type"].asString();
11  this->file_size = json["file_size"].asInt64();
12 }
Json::Int64 file_size
Definition: Video.h:22
std::string file_id
Definition: Video.h:16
Json::Int64 duration
Definition: Video.h:19
std::string mime_type
Definition: Video.h:21
Json::Int64 width
Definition: Video.h:17
Video(Json::Value)
Definition: Video.cc:3
Json::Int64 height
Definition: Video.h:18
PhotoSize * thumb
Definition: Video.h:20