mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-18 03:59:38 +00:00
19 lines
500 B
JavaScript
19 lines
500 B
JavaScript
'use strict';
|
|
|
|
const NavigationEndpoint = require('./NavigationEndpoint');
|
|
const Text = require('./Text');
|
|
const Thumbnail = require('./Thumbnail');
|
|
|
|
class ReelItem {
|
|
type = 'ReelItem';
|
|
|
|
constructor(data) {
|
|
this.id = data.videoId;
|
|
this.title = new Text(data.headline, '');
|
|
this.thumbnails = Thumbnail.fromResponse(data.thumbnail);
|
|
this.views = new Text(data.viewCountText, '');
|
|
this.endpoint = new NavigationEndpoint(data.navigationEndpoint);
|
|
}
|
|
}
|
|
|
|
module.exports = ReelItem; |