Files
YouTube.js/src/parser/classes/AccountSectionList.ts
2022-08-25 01:43:05 -03:00

20 lines
534 B
TypeScript

import Parser from '..';
import AccountChannel from './AccountChannel';
import AccountItemSection from './AccountItemSection';
import { YTNode } from '../helpers';
class AccountSectionList extends YTNode {
static type = 'AccountSectionList';
contents;
footers;
constructor(data: any) {
super();
this.contents = Parser.parseItem<AccountItemSection>(data.contents[0], AccountItemSection);
this.footers = Parser.parseItem<AccountChannel>(data.footers[0], AccountChannel);
}
}
export default AccountSectionList;