File tree 6 files changed +72
-1
lines changed
6 files changed +72
-1
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ export class IncomingHeader
117
117
public static CONVERTED_ROOM_ID = 1331 ;
118
118
public static GUEST_ROOM_SEARCH_RESULT = 52 ;
119
119
public static NOTIFICATION_LIST = 1992 ;
120
+ public static NOTIFICATION_OFFER_REWARD_DELIVERED = 2125 ;
120
121
public static PET_FIGURE_UPDATE = 1924 ;
121
122
public static PET_INFO = 2901 ;
122
123
public static PET_TRAINING_PANEL = 1164 ;
Original file line number Diff line number Diff line change
1
+ import { IMessageEvent } from '../../../../../api' ;
2
+ import { MessageEvent } from '../../../../../events' ;
3
+ import { OfferRewardDeliveredMessageParser } from '../../parser' ;
4
+
5
+ export class OfferRewardDeliveredMessageEvent extends MessageEvent implements IMessageEvent
6
+ {
7
+ constructor ( callBack : Function )
8
+ {
9
+ super ( callBack , OfferRewardDeliveredMessageParser ) ;
10
+ }
11
+
12
+ public getParser ( ) : OfferRewardDeliveredMessageParser
13
+ {
14
+ return this . parser as OfferRewardDeliveredMessageParser ;
15
+ }
16
+ }
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export * from './HotelWillShutdownEvent';
7
7
export * from './InfoFeedEnableMessageEvent' ;
8
8
export * from './MOTDNotificationEvent' ;
9
9
export * from './NotificationDialogMessageEvent' ;
10
+ export * from './OfferRewardDeliveredMessageEvent' ;
10
11
export * from './PetLevelNotificationEvent' ;
11
12
export * from './PetPlacingErrorEvent' ;
12
13
export * from './UnseenItemsEvent' ;
Original file line number Diff line number Diff line change
1
+ import { IMessageDataWrapper , IMessageParser } from '../../../../../api' ;
2
+
3
+ export class OfferRewardDeliveredMessageParser implements IMessageParser
4
+ {
5
+ private _contentType : string ;
6
+ private _classId : number ;
7
+ private _name : string ;
8
+ private _description : string ;
9
+
10
+ public flush ( ) : boolean
11
+ {
12
+ this . _contentType = null ;
13
+ this . _classId = 0 ;
14
+ this . _name = null ;
15
+ this . _description = null ;
16
+
17
+ return true ;
18
+ }
19
+
20
+ public parse ( wrapper : IMessageDataWrapper ) : boolean
21
+ {
22
+ if ( ! wrapper ) return false ;
23
+
24
+ this . _contentType = wrapper . readString ( ) ;
25
+ this . _classId = wrapper . readInt ( ) ;
26
+ this . _name = wrapper . readString ( ) ;
27
+ this . _description = wrapper . readString ( ) ;
28
+
29
+ return true ;
30
+ }
31
+
32
+ public get contentType ( ) : string
33
+ {
34
+ return this . _contentType ;
35
+ }
36
+
37
+ public get classId ( ) : number
38
+ {
39
+ return this . _classId ;
40
+ }
41
+
42
+ public get name ( ) : string
43
+ {
44
+ return this . _name ;
45
+ }
46
+
47
+ public get description ( ) : string
48
+ {
49
+ return this . _description ;
50
+ }
51
+ }
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ export * from './HotelWillShutdownParser';
8
8
export * from './InfoFeedEnableMessageParser' ;
9
9
export * from './MOTDNotificationParser' ;
10
10
export * from './NotificationDialogMessageParser' ;
11
+ export * from './OfferRewardDeliveredMessageParser' ;
11
12
export * from './PetLevelNotificationParser' ;
12
13
export * from './PetPlacingErrorEventParser' ;
13
14
export * from './UnseenItemsParser' ;
You can’t perform that action at this time.
0 commit comments