mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 11:32:27 +00:00
18 lines
518 B
TypeScript
18 lines
518 B
TypeScript
import { Text } from '../misc.js';
|
|
import { YTNode } from '../helpers.js';
|
|
import type { RawNode } from '../index.js';
|
|
|
|
export default class VideoViewCount extends YTNode {
|
|
static type = 'VideoViewCount';
|
|
|
|
public original_view_count: string;
|
|
public short_view_count: Text;
|
|
public view_count: Text;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.original_view_count = data.originalViewCount;
|
|
this.short_view_count = new Text(data.shortViewCount);
|
|
this.view_count = new Text(data.viewCount);
|
|
}
|
|
} |