mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-16 19:12:24 +00:00
17 lines
457 B
JavaScript
17 lines
457 B
JavaScript
'use strict';
|
|
|
|
const NavigationEndpoint = require('./NavigationEndpoint');
|
|
const Thumbnail = require('./Thumbnail');
|
|
const Text = require('./Text');
|
|
|
|
class SearchRefinementCard {
|
|
type = 'SearchRefinementCard';
|
|
|
|
constructor(data) {
|
|
this.thumbnails = Thumbnail.fromResponse(data.thumbnail);
|
|
this.endpoint = new NavigationEndpoint(data.searchEndpoint);
|
|
this.query = new Text(data.query).toString();
|
|
}
|
|
}
|
|
|
|
module.exports = SearchRefinementCard; |