mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-16 02:52:12 +00:00
23 lines
620 B
TypeScript
23 lines
620 B
TypeScript
import { YTNode } from '../helpers.js';
|
|
import { Parser, type RawNode } from '../index.js';
|
|
import ThumbnailView from './ThumbnailView.js';
|
|
|
|
export default class CollectionThumbnailView extends YTNode {
|
|
static type = 'CollectionThumbnailView';
|
|
|
|
primary_thumbnail: ThumbnailView | null;
|
|
stack_color: {
|
|
light_theme: number;
|
|
dark_theme: number;
|
|
};
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
|
|
this.primary_thumbnail = Parser.parseItem(data.primaryThumbnail, ThumbnailView);
|
|
this.stack_color = {
|
|
light_theme: data.stackColor.lightTheme,
|
|
dark_theme: data.stackColor.darkTheme
|
|
};
|
|
}
|
|
} |