mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-18 03:59:38 +00:00
19 lines
522 B
JavaScript
19 lines
522 B
JavaScript
'use strict';
|
|
|
|
const Text = require('../../Text');
|
|
const Thumbnail = require('../../Thumbnail');
|
|
const Parser = require('../../..');
|
|
|
|
class PollHeader {
|
|
type = 'PollHeader';
|
|
|
|
constructor(data) {
|
|
this.poll_question = new Text(data.pollQuestion);
|
|
this.thumbnails = Thumbnail.fromResponse(data.thumbnail);
|
|
this.metadata = new Text(data.metadataText);
|
|
this.live_chat_poll_type = data.liveChatPollType;
|
|
this.context_menu_button = Parser.parse(data.contextMenuButton);
|
|
}
|
|
}
|
|
|
|
module.exports = PollHeader; |