mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-07-02 21:52:48 +00:00
Now we can organize renderers in individual folders and fix the mess that `../contents/classes` is!
18 lines
381 B
JavaScript
18 lines
381 B
JavaScript
'use strict';
|
|
|
|
const Parser = require('../..');
|
|
|
|
class ReplayChatItemAction {
|
|
type = 'ReplayChatItemAction';
|
|
|
|
constructor(data) {
|
|
this.actions = Parser.parse(data.actions?.map((action) => {
|
|
delete action.clickTrackingParams;
|
|
return action;
|
|
})) || [];
|
|
|
|
this.video_offset_time_msec = data.videoOffsetTimeMsec;
|
|
}
|
|
}
|
|
|
|
module.exports = ReplayChatItemAction; |