MCPcopy Create free account
hub / github.com/LuanRT/YouTube.js / constructor

Method constructor

src/parser/classes/PageHeaderView.ts:25–36  ·  view source on GitHub ↗
(data: RawNode)

Source from the content-addressed store, hash-verified

23 banner: ImageBannerView | null;
24
25 constructor(data: RawNode) {
26 super();
27 this.title = Parser.parseItem(data.title, DynamicTextView);
28 this.image = Parser.parseItem(data.image, [ ContentPreviewImageView, DecoratedAvatarView ]);
29 this.animated_image = Parser.parseItem(data.animatedImage, ContentPreviewImageView);
30 this.hero_image = Parser.parseItem(data.heroImage, ContentPreviewImageView);
31 this.metadata = Parser.parseItem(data.metadata, ContentMetadataView);
32 this.actions = Parser.parseItem(data.actions, FlexibleActionsView);
33 this.description = Parser.parseItem(data.description, DescriptionPreviewView);
34 this.attributation = Parser.parseItem(data.attributation, AttributionView);
35 this.banner = Parser.parseItem(data.banner, ImageBannerView);
36 }
37}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected