File tree Expand file tree Collapse file tree 6 files changed +72
-1
lines changed Expand file tree Collapse file tree 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 @@ -128,6 +128,7 @@ export class IncomingHeader
128
128
public static CONVERTED_ROOM_ID = 1331 ;
129
129
public static GUEST_ROOM_SEARCH_RESULT = 52 ;
130
130
public static NOTIFICATION_LIST = 1992 ;
131
+ public static NOTIFICATION_OFFER_REWARD_DELIVERED = 2125 ;
131
132
public static NOTIFICATION_SIMPLE_ALERT = 5100 ;
132
133
public static NOTIFICATION_ELEMENT_POINTER = 1787 ;
133
134
public static PET_FIGURE_UPDATE = 1924 ;
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 @@ -9,6 +9,7 @@ export * from './HotelWillShutdownEvent';
9
9
export * from './InfoFeedEnableMessageEvent' ;
10
10
export * from './MOTDNotificationEvent' ;
11
11
export * from './NotificationDialogMessageEvent' ;
12
+ export * from './OfferRewardDeliveredMessageEvent' ;
12
13
export * from './PetLevelNotificationEvent' ;
13
14
export * from './PetPlacingErrorEvent' ;
14
15
export * from './SimpleAlertMessageEvent' ;
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 @@ -10,6 +10,7 @@ export * from './HotelWillShutdownParser';
10
10
export * from './InfoFeedEnableMessageParser' ;
11
11
export * from './MOTDNotificationParser' ;
12
12
export * from './NotificationDialogMessageParser' ;
13
+ export * from './OfferRewardDeliveredMessageParser' ;
13
14
export * from './PetLevelNotificationParser' ;
14
15
export * from './PetPlacingErrorEventParser' ;
15
16
export * from './SimpleAlertMessageParser' ;
You can’t perform that action at this time.
0 commit comments