mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-20 04:51:16 +00:00
* (fix) `on_behalf_of_user` arg not applied * (feat) `AccountManager#getInfo()`: Add option to fetch full accounts list
21 lines
623 B
TypeScript
21 lines
623 B
TypeScript
import type { ObservedArray } from '../../helpers.js';
|
|
import { YTNode } from '../../helpers.js';
|
|
import { Parser, type RawNode } from '../../index.js';
|
|
import ChannelSwitcherPage from '../ChannelSwitcherPage.js';
|
|
|
|
export default class UpdateChannelSwitcherPageAction extends YTNode {
|
|
static type = 'UpdateChannelSwitcherPageAction';
|
|
|
|
public header?: YTNode;
|
|
public contents?: ObservedArray<YTNode> | null;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
const page = Parser.parseItem(data.page, ChannelSwitcherPage);
|
|
if (page) {
|
|
this.header = page.header;
|
|
this.contents = page.contents;
|
|
}
|
|
}
|
|
}
|