mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-18 20:12:12 +00:00
28 lines
629 B
JavaScript
28 lines
629 B
JavaScript
'use strict';
|
|
|
|
// Const Parser = require('../../..');
|
|
const Text = require('../../Text');
|
|
const Thumbnail = require('../../Thumbnail');
|
|
|
|
class LiveChatTickerSponsorItem {
|
|
type = 'LiveChatTickerSponsorItem';
|
|
|
|
constructor(data) {
|
|
this.id = data.id;
|
|
this.detail_text = new Text(data.detailText).toString();
|
|
|
|
this.author = {
|
|
id: data.authorExternalChannelId,
|
|
name: new Text(data?.authorName),
|
|
thumbnails: Thumbnail.fromResponse(data.sponsorPhoto)
|
|
};
|
|
|
|
this.duration_sec = data.durationSec;
|
|
|
|
// TODO: finish this
|
|
|
|
// Console.log(data)
|
|
}
|
|
}
|
|
|
|
module.exports = LiveChatTickerSponsorItem; |