mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-23 06:32:51 +00:00
17 lines
492 B
TypeScript
17 lines
492 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';
|
|
|
|
public badges: ThumbnailBadgeView[];
|
|
public position: string;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
|
|
this.badges = Parser.parseArray(data.thumbnailBadges, ThumbnailBadgeView);
|
|
this.position = data.position;
|
|
}
|
|
} |