-
-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add `FeedNudge` see https://github.com/LuanRT/YouTube.js/actions/runs/6679090140/job/18150827068?pr=532 * fix: lint * fix: update parser-map
- Loading branch information
1 parent
db7f620
commit e021395
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { YTNode } from '../helpers.js'; | ||
import { NavigationEndpoint } from '../nodes.js'; | ||
|
||
import type { RawNode } from '../types/index.js'; | ||
|
||
export default class FeedNudge extends YTNode { | ||
static type = 'FeedNudge'; | ||
|
||
title: Text; | ||
subtitle: Text; | ||
endpoint: NavigationEndpoint; | ||
apply_modernized_style: boolean; | ||
trim_style: string; | ||
background_style: string; | ||
|
||
constructor(data: RawNode) { | ||
super(); | ||
this.title = new Text(data.title); | ||
this.subtitle = new Text(data.subtitle); | ||
this.endpoint = new NavigationEndpoint(data.impressionEndpoint); | ||
this.apply_modernized_style = data.applyModernizedStyle; | ||
this.trim_style = data.trimStyle; | ||
this.background_style = data.backgroundStyle; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters