Files
YouTube.js/deno/src/parser/classes/PlayerLegacyDesktopYpcOffer.ts
2023-04-29 05:15:47 +00:00

19 lines
496 B
TypeScript

import { YTNode } from '../helpers.ts';
import type { RawNode } from '../index.ts';
export default 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;
}
}