Files
YouTube.js/src/parser/classes/AccountSectionList.ts
Luan 0081e11ebc refactor!: Deprecate account#getAnalytics, account#getTimeWatched and account#getAnalytics
Due to recent changes by YouTube, these actions can no longer be executed using web based OAuth tokens nor cookies.
2024-10-26 17:45:09 -03:00

20 lines
675 B
TypeScript

import { Parser } from '../index.js';
import AccountChannel from './AccountChannel.js';
import AccountItemSection from './AccountItemSection.js';
import type { RawNode } from '../index.js';
import type { ObservedArray } from '../helpers.js';
import { YTNode } from '../helpers.js';
export default class AccountSectionList extends YTNode {
static type = 'AccountSectionList';
public contents: ObservedArray<AccountItemSection>;
public footers: ObservedArray<AccountChannel>;
constructor(data: RawNode) {
super();
this.contents = Parser.parseArray(data.contents, AccountItemSection);
this.footers = Parser.parseArray(data.footers, AccountChannel);
}
}