forked from moritzsternemann/QtTelegramBot
Initial commit
This commit is contained in:
commit
3663fd38ce
41 files changed
+2095
No files matched your search
@@ -0,0 +1,14 @@
|
||||
#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();
|
||||
}
|
||||
Reference in new issue
Block a user