mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 19:42:14 +00:00
17 lines
509 B
JavaScript
17 lines
509 B
JavaScript
'use strict';
|
|
|
|
const NavigationEndpoint = require('./NavigationEndpoint');
|
|
const Thumbnail = require('./Thumbnail');
|
|
|
|
class CollageHeroImage {
|
|
type = 'CollageHeroImage';
|
|
|
|
constructor(data) {
|
|
this.left = Thumbnail.fromResponse(data.leftThumbnail);
|
|
this.top_right = Thumbnail.fromResponse(data.topRightThumbnail);
|
|
this.bottom_right = Thumbnail.fromResponse(data.bottomRightThumbnail);
|
|
this.endpoint = new NavigationEndpoint(data.navigationEndpoint);
|
|
}
|
|
}
|
|
|
|
module.exports = CollageHeroImage; |