mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 04:21:35 +00:00
16 lines
413 B
JavaScript
16 lines
413 B
JavaScript
import Text from './misc/Text';
|
|
import NavigationEndpoint from './NavigationEndpoint';
|
|
import { YTNode } from '../helpers';
|
|
|
|
class SubFeedOption extends YTNode {
|
|
static type = 'SubFeedOption';
|
|
|
|
constructor(data) {
|
|
super();
|
|
this.name = new Text(data.name);
|
|
this.is_selected = data.isSelected;
|
|
this.endpoint = new NavigationEndpoint(data.navigationEndpoint);
|
|
}
|
|
}
|
|
|
|
export default SubFeedOption; |