Skip to content

Commit

Permalink
feat(parser): Add UpdateSubscribeButtonAction
Browse files Browse the repository at this point in the history
  • Loading branch information
LuanRT committed Nov 9, 2024
1 parent 0a99342 commit fdb7540
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/parser/classes/actions/UpdateSubscribeButtonAction.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import type { RawNode } from '../../index.js';
import { YTNode } from '../../helpers.js';

export default class UpdateSubscribeButtonAction extends YTNode {
static type = 'UpdateSubscribeButtonAction';

public channel_id: string;
public subscribed: boolean;

constructor(data: RawNode) {
super();
this.channel_id = data.channelId;
this.subscribed = data.subscribed;
}
}
1 change: 1 addition & 0 deletions src/parser/nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export { default as AppendContinuationItemsAction } from './classes/actions/Appe
export { default as GetMultiPageMenuAction } from './classes/actions/GetMultiPageMenuAction.js';
export { default as OpenPopupAction } from './classes/actions/OpenPopupAction.js';
export { default as UpdateEngagementPanelAction } from './classes/actions/UpdateEngagementPanelAction.js';
export { default as UpdateSubscribeButtonAction } from './classes/actions/UpdateSubscribeButtonAction.js';
export { default as Alert } from './classes/Alert.js';
export { default as AlertWithButton } from './classes/AlertWithButton.js';
export { default as AnalyticsMainAppKeyMetrics } from './classes/analytics/AnalyticsMainAppKeyMetrics.js';
Expand Down

0 comments on commit fdb7540

Please sign in to comment.