Files
QtTelegramBot/types/video.cpp
Moritz Sternemann 3663fd38ce Initial commit
2015-12-29 16:44:16 +01:00

15 lines
422 B
C++

#include "video.h"
using namespace Telegram;
Video::Video(QJsonObject video)
{
fileId = video.value("file_id").toString();
width = video.value("width").toInt();
height = video.value("height").toInt();
duration = video.value("duration").toInt();
thumb = PhotoSize(video.value("thumb").toObject());
mimeType = video.value("mime_type").toString();
fileSize = video.value("file_size").toInt();
}