import { YTNode } from '../helpers'; import Text from './misc/Text'; import Thumbnail from './misc/Thumbnail'; import NavigationEndpoint from './NavigationEndpoint'; export default class CompactStation extends YTNode { static type = 'CompactStation'; title: Text; description: Text; video_count: Text; endpoint: NavigationEndpoint; thumbnail: Thumbnail[]; constructor(data: any) { super(); this.title = new Text(data.title); this.description = new Text(data.description); this.video_count = new Text(data.videoCountText); this.endpoint = new NavigationEndpoint(data.navigationEndpoint); this.thumbnail = Thumbnail.fromResponse(data.thumbnail); } }