mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-18 12:02:11 +00:00
25 lines
465 B
JavaScript
25 lines
465 B
JavaScript
'use strict';
|
|
|
|
class AuthorCommentBadge {
|
|
type = 'AuthorCommentBadge';
|
|
|
|
#data;
|
|
|
|
constructor(data) {
|
|
this.icon_type = data.icon.iconType;
|
|
this.tooltip = data.iconTooltip;
|
|
|
|
// *** For consistency
|
|
this.tooltip === 'Verified' &&
|
|
(this.style = 'BADGE_STYLE_TYPE_VERIFIED') &&
|
|
(data.style = 'BADGE_STYLE_TYPE_VERIFIED');
|
|
|
|
this.#data = data;
|
|
}
|
|
|
|
get orig_badge() {
|
|
return this.#data;
|
|
}
|
|
}
|
|
|
|
module.exports = AuthorCommentBadge; |