UNPKG

innertuber-rn

Version:

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

22 lines 963 B
import { YTNode } from '../helpers.js'; import { Parser } from '../index.js'; import Text from './misc/Text.js'; import Thumbnail from './misc/Thumbnail.js'; import NavigationEndpoint from './NavigationEndpoint.js'; class Notification extends YTNode { constructor(data) { super(); this.thumbnails = Thumbnail.fromResponse(data.thumbnail); this.video_thumbnails = Thumbnail.fromResponse(data.videoThumbnail); this.short_message = new Text(data.shortMessage); this.sent_time = new Text(data.sentTimeText); this.notification_id = data.notificationId; this.endpoint = new NavigationEndpoint(data.navigationEndpoint); this.record_click_endpoint = new NavigationEndpoint(data.recordClickEndpoint); this.menu = Parser.parseItem(data.contextualMenu); this.read = data.read; } } Notification.type = 'Notification'; export default Notification; //# sourceMappingURL=Notification.js.map