mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-07-02 21:52:48 +00:00
style: format code
This commit is contained in:
@@ -6,23 +6,23 @@ const Thumbnail = require('../../Thumbnail');
|
||||
const Text = require('../../Text');
|
||||
|
||||
class LiveChatPaidSticker {
|
||||
type = 'LiveChatPaidSticker';
|
||||
type = 'LiveChatPaidSticker';
|
||||
|
||||
constructor(data) {
|
||||
this.id = data.id;
|
||||
constructor(data) {
|
||||
this.id = data.id;
|
||||
|
||||
this.author = {
|
||||
this.author = {
|
||||
id: data.authorExternalChannelId,
|
||||
name: new Text(data.authorName),
|
||||
thumbnails: Thumbnail.fromResponse(data.authorPhoto),
|
||||
badges: Parser.parse(data.authorBadges)
|
||||
};
|
||||
|
||||
this.sticker = Thumbnail.fromResponse(data.sticker);
|
||||
this.purchase_amount = new Text(data.purchaseAmountText).toString();
|
||||
this.context_menu = new NavigationEndpoint(data.contextMenuEndpoint);
|
||||
this.timestamp = Math.floor(parseInt(data.timestampUsec) / 1000);
|
||||
}
|
||||
this.sticker = Thumbnail.fromResponse(data.sticker);
|
||||
this.purchase_amount = new Text(data.purchaseAmountText).toString();
|
||||
this.context_menu = new NavigationEndpoint(data.contextMenuEndpoint);
|
||||
this.timestamp = Math.floor(parseInt(data.timestampUsec) / 1000);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = LiveChatPaidSticker;
|
||||
module.exports = LiveChatPaidSticker;
|
||||
Reference in New Issue
Block a user