feat: add ThumbnailOverlayInlineUnplayable renderer

This commit is contained in:
LuanRT
2022-06-15 19:36:44 -03:00
parent 3458bb422a
commit f6af3faa41
2 changed files with 16 additions and 1 deletions

View File

@@ -1,10 +1,11 @@
const Parser = require('..');
// TODO: implement all renderers related to this
class RichSection {
type = 'RichSection';
constructor(data) {
this.contents = Parser.parse(data.contents);
// this.contents = Parser.parse(data.content);
}
}

View File

@@ -0,0 +1,14 @@
'use strict';
const Text = require('./Text');
class ThumbnailOverlayInlineUnplayable {
type = 'ThumbnailOverlayInlineUnplayable';
constructor(data) {
this.text = new Text(data.text).toString();
this.icon_type = data.icon.iconType;
}
}
module.exports = ThumbnailOverlayInlineUnplayable;