mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-16 02:52:12 +00:00
* refactor: improve live chat parsers & add missing nodes * chore: update example and docs * docs: rephrasing/formatting * chore: remove unneeded test (unrelated)
18 lines
489 B
TypeScript
18 lines
489 B
TypeScript
import Parser from '../index';
|
|
import { YTNode } from '../helpers';
|
|
import type Button from './Button';
|
|
|
|
class LiveChatItemList extends YTNode {
|
|
static type = 'LiveChatItemList';
|
|
|
|
max_items_to_display: string;
|
|
more_comments_below_button: Button | null;
|
|
|
|
constructor(data: any) {
|
|
super();
|
|
this.max_items_to_display = data.maxItemsToDisplay;
|
|
this.more_comments_below_button = Parser.parseItem<Button>(data.moreCommentsBelowButton);
|
|
}
|
|
}
|
|
|
|
export default LiveChatItemList; |