File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed
Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ import { YTNode } from '../../../helpers.js' ;
2+ import type { RawNode } from '../../../index.js' ;
3+ import NavigationEndpoint from '../../NavigationEndpoint.js' ;
4+ import Author from '../../misc/Author.js' ;
5+ import Text from '../../misc/Text.js' ;
6+
7+ export default class LiveChatSponsorshipsGiftRedemptionAnnouncement extends YTNode {
8+ static type = 'LiveChatSponsorshipsGiftRedemptionAnnouncement' ;
9+
10+ id : string ;
11+ timestamp_usec : string ;
12+ timestamp_text : Text ;
13+ author : Author ;
14+ message : Text ;
15+ menu_endpoint : NavigationEndpoint ;
16+ context_menu_accessibility_label : string ;
17+
18+ constructor ( data : RawNode ) {
19+ super ( ) ;
20+ this . id = data . id ;
21+ this . timestamp_usec = data . timestampUsec ;
22+ this . timestamp_text = new Text ( data . timestampText ) ;
23+
24+ this . author = new Author (
25+ data . authorName ,
26+ data . authorBadges ,
27+ data . authorPhoto ,
28+ data . authorExternalChannelId
29+ ) ;
30+
31+ this . message = new Text ( data . message ) ;
32+ this . menu_endpoint = new NavigationEndpoint ( data . contextMenuEndpoint ) ;
33+ this . context_menu_accessibility_label = data . contextMenuAccessibility . accessibilityData . label ;
34+ }
35+ }
Original file line number Diff line number Diff line change @@ -188,6 +188,7 @@ export { default as LiveChatPlaceholderItem } from './classes/livechat/items/Liv
188188export { default as LiveChatProductItem } from './classes/livechat/items/LiveChatProductItem.js' ;
189189export { default as LiveChatRestrictedParticipation } from './classes/livechat/items/LiveChatRestrictedParticipation.js' ;
190190export { default as LiveChatSponsorshipsGiftPurchaseAnnouncement } from './classes/livechat/items/LiveChatSponsorshipsGiftPurchaseAnnouncement.js' ;
191+ export { default as LiveChatSponsorshipsGiftRedemptionAnnouncement } from './classes/livechat/items/LiveChatSponsorshipsGiftRedemptionAnnouncement.js' ;
191192export { default as LiveChatSponsorshipsHeader } from './classes/livechat/items/LiveChatSponsorshipsHeader.js' ;
192193export { default as LiveChatTextMessage } from './classes/livechat/items/LiveChatTextMessage.js' ;
193194export { default as LiveChatTickerPaidMessageItem } from './classes/livechat/items/LiveChatTickerPaidMessageItem.js' ;
You can’t perform that action at this time.
0 commit comments