mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-16 19:12:24 +00:00
20 lines
575 B
JavaScript
20 lines
575 B
JavaScript
'use strict';
|
|
|
|
const Text = require('./Text');
|
|
const Thumbnail = require('./Thumbnail');
|
|
const NavigationEndpoint = require('./NavigationEndpoint');
|
|
|
|
class EndScreenPlaylist {
|
|
type = 'EndScreenPlaylist';
|
|
|
|
constructor(data) {
|
|
this.id = data.playlistId;
|
|
this.title = new Text(data.title);
|
|
this.author = new Text(data.longBylineText);
|
|
this.endpoint = new NavigationEndpoint(data.navigationEndpoint);
|
|
this.thumbnails = Thumbnail.fromResponse(data.thumbnail);
|
|
this.video_count = new Text(data.videoCountText);
|
|
}
|
|
}
|
|
|
|
module.exports = EndScreenPlaylist; |