feat: add parsers for TimeWatched

This commit is contained in:
LuanRT
2022-08-24 06:13:19 -03:00
parent c000bd8d5f
commit 541cdc455f
11 changed files with 159 additions and 32 deletions

View File

@@ -0,0 +1,18 @@
import Text from './misc/Text';
import { YTNode } from '../helpers';
class SimpleTextSection extends YTNode {
static type = 'SimpleTextSection';
lines: Text[];
style: string;
constructor(data: any) {
super();
this.lines = data.lines.map((line: any) => new Text(line));
this.style = data.layoutStyle;
}
}
export default SimpleTextSection;