Files
YouTube.js/src/parser/classes/PlayerLegacyDesktopYpcOffer.ts

21 lines
526 B
TypeScript

import { YTNode } from '../helpers.js';
import type { RawNode } from '../index.js';
class PlayerLegacyDesktopYpcOffer extends YTNode {
static type = 'PlayerLegacyDesktopYpcOffer';
title: string;
thumbnail: string;
offer_description: string;
offer_id: string;
constructor(data: RawNode) {
super();
this.title = data.itemTitle;
this.thumbnail = data.itemThumbnail;
this.offer_description = data.offerDescription;
this.offer_id = data.offerId;
}
}
export default PlayerLegacyDesktopYpcOffer;