#28 - RestoreClientMessageEvent added (#39)

Co-authored-by: Bill <billsonnn@users.noreply.github.com>
This commit is contained in:
object 2023-04-30 01:48:18 +02:00 committed by GitHub
parent 276c3e1b68
commit e17a698ea7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 37 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -443,6 +443,7 @@ export class IncomingHeader
public static SHOW_ENFORCE_ROOM_CATEGORY = 3896; public static SHOW_ENFORCE_ROOM_CATEGORY = 3896;
public static CUSTOM_USER_NOTIFICATION = 909; public static CUSTOM_USER_NOTIFICATION = 909;
public static NEW_USER_EXPERIENCE_GIFT_OFFER = 3575; public static NEW_USER_EXPERIENCE_GIFT_OFFER = 3575;
public static RESTORE_CLIENT = 426;
public static FIREWORK_CHARGE_DATA = 5210; public static FIREWORK_CHARGE_DATA = 5210;
public static NEW_USER_EXPERIENCE_NOT_COMPLETE = 3639; public static NEW_USER_EXPERIENCE_NOT_COMPLETE = 3639;
public static CONNECTION_ERROR = 1004; public static CONNECTION_ERROR = 1004;

View File

@ -0,0 +1,16 @@
import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../events';
import { RestoreClientMessageParser } from '../../parser';
export class RestoreClientMessageEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, RestoreClientMessageParser);
}
public getParser(): RestoreClientMessageParser
{
return this.parser as RestoreClientMessageParser;
}
}

View File

@ -12,5 +12,6 @@ export * from './NotificationDialogMessageEvent';
export * from './OfferRewardDeliveredMessageEvent'; export * from './OfferRewardDeliveredMessageEvent';
export * from './PetLevelNotificationEvent'; export * from './PetLevelNotificationEvent';
export * from './PetPlacingErrorEvent'; export * from './PetPlacingErrorEvent';
export * from './RestoreClientMessageEvent';
export * from './SimpleAlertMessageEvent'; export * from './SimpleAlertMessageEvent';
export * from './UnseenItemsEvent'; export * from './UnseenItemsEvent';

View File

@ -0,0 +1,14 @@
import { IMessageDataWrapper, IMessageParser } from '../../../../../api';
export class RestoreClientMessageParser implements IMessageParser
{
public flush(): boolean
{
return true;
}
public parse(wrapper: IMessageDataWrapper): boolean
{
return true;
}
}

View File

@ -13,5 +13,6 @@ export * from './NotificationDialogMessageParser';
export * from './OfferRewardDeliveredMessageParser'; export * from './OfferRewardDeliveredMessageParser';
export * from './PetLevelNotificationParser'; export * from './PetLevelNotificationParser';
export * from './PetPlacingErrorEventParser'; export * from './PetPlacingErrorEventParser';
export * from './RestoreClientMessageParser';
export * from './SimpleAlertMessageParser'; export * from './SimpleAlertMessageParser';
export * from './UnseenItemsParser'; export * from './UnseenItemsParser';