mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-16 19:12:24 +00:00
19 lines
451 B
JavaScript
19 lines
451 B
JavaScript
'use strict';
|
|
|
|
const Text = require('./Text');
|
|
const Author = require('./Author');
|
|
|
|
class VideoOwner {
|
|
type = 'VideoOwner';
|
|
|
|
constructor(data) {
|
|
this.subscription_button = data.subscriptionButton || null;
|
|
this.subscriber_count = new Text(data.subscriberCountText);
|
|
this.author = new Author({
|
|
...data.title,
|
|
navigationEndpoint: data.navigationEndpoint
|
|
}, data.badges, data.thumbnail);
|
|
}
|
|
}
|
|
|
|
module.exports = VideoOwner; |