UNPKG

innertuber-rn

Version:

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

22 lines 914 B
import Thumbnail from './misc/Thumbnail.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import { YTNode } from '../helpers.js'; class MerchandiseItem extends YTNode { constructor(data) { super(); this.title = data.title; this.description = data.description; this.thumbnails = Thumbnail.fromResponse(data.thumbnail); this.price = data.price; this.vendor_name = data.vendorName; this.button_text = data.buttonText; this.button_accessibility_text = data.buttonAccessibilityText; this.from_vendor_text = data.fromVendorText; this.additional_fees_text = data.additionalFeesText; this.region_format = data.regionFormat; this.endpoint = new NavigationEndpoint(data.buttonCommand); } } MerchandiseItem.type = 'MerchandiseItem'; export default MerchandiseItem; //# sourceMappingURL=MerchandiseItem.js.map