@steepleinc/youtubei.js
Version:
A JavaScript client for YouTube's private API, known as InnerTube.
19 lines • 1.03 kB
JavaScript
import { YTNode } from '../../../helpers.js';
import NavigationEndpoint from '../../NavigationEndpoint.js';
import Author from '../../misc/Author.js';
import Text from '../../misc/Text.js';
class LiveChatSponsorshipsGiftRedemptionAnnouncement extends YTNode {
constructor(data) {
super();
this.id = data.id;
this.timestamp_usec = data.timestampUsec;
this.timestamp_text = new Text(data.timestampText);
this.author = new Author(data.authorName, data.authorBadges, data.authorPhoto, data.authorExternalChannelId);
this.message = new Text(data.message);
this.menu_endpoint = new NavigationEndpoint(data.contextMenuEndpoint);
this.context_menu_accessibility_label = data.contextMenuAccessibility.accessibilityData.label;
}
}
LiveChatSponsorshipsGiftRedemptionAnnouncement.type = 'LiveChatSponsorshipsGiftRedemptionAnnouncement';
export default LiveChatSponsorshipsGiftRedemptionAnnouncement;
//# sourceMappingURL=LiveChatSponsorshipsGiftRedemptionAnnouncement.js.map