mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-16 19:12:24 +00:00
17 lines
478 B
TypeScript
17 lines
478 B
TypeScript
import { YTNode } from '../helpers.js';
|
|
import { Parser, type RawNode } from '../index.js';
|
|
import ThumbnailBadgeView from './ThumbnailBadgeView.js';
|
|
|
|
export default class ThumbnailOverlayBadgeView extends YTNode {
|
|
static type = 'ThumbnailOverlayBadgeView';
|
|
|
|
badges: ThumbnailBadgeView[];
|
|
position: string;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
|
|
this.badges = Parser.parseArray(data.thumbnailBadges, ThumbnailBadgeView);
|
|
this.position = data.position;
|
|
}
|
|
} |