mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-16 19:12:24 +00:00
19 lines
565 B
JavaScript
19 lines
565 B
JavaScript
'use strict';
|
|
|
|
const Text = require('./Text');
|
|
const Thumbnail = require('./Thumbnail');
|
|
const NavigationEndpoint = require('./NavigationEndpoint');
|
|
|
|
class PlaylistInfoCardContent {
|
|
type = 'PlaylistInfoCardContent';
|
|
|
|
constructor(data) {
|
|
this.title = new Text(data.playlistTitle);
|
|
this.thumbnails = Thumbnail.fromResponse(data.thumbnail);
|
|
this.video_count = new Text(data.playlistVideoCount);
|
|
this.channel_name = new Text(data.channelName);
|
|
this.endpoint = new NavigationEndpoint(data.action);
|
|
}
|
|
}
|
|
|
|
module.exports = PlaylistInfoCardContent; |