style: format code

This commit is contained in:
LuanRT
2022-06-29 20:57:16 -03:00
parent 263b4887c3
commit 3e2b932844

View File

@@ -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;