UNPKG

innertuber-rn

Version:

A wrapper around YouTube's private API. Supports YouTube, YouTube Music, YouTube Kids and YouTube Studio (WIP).

18 lines 759 B
import { YTNode } from '../helpers.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import Text from './misc/Text.js'; import Thumbnail from './misc/Thumbnail.js'; class VideoInfoCardContent extends YTNode { constructor(data) { super(); this.title = new Text(data.videoTitle); this.channel_name = new Text(data.channelName); this.view_count = new Text(data.viewCountText); this.video_thumbnails = Thumbnail.fromResponse(data.videoThumbnail); this.duration = new Text(data.lengthString); this.endpoint = new NavigationEndpoint(data.action); } } VideoInfoCardContent.type = 'VideoInfoCardContent'; export default VideoInfoCardContent; //# sourceMappingURL=VideoInfoCardContent.js.map