#28 - NewUserExperienceNotCompleteEvent added

This commit is contained in:
oobjectt 2023-01-03 23:24:40 +01:00
parent 12a8362872
commit 8224c3ffb7
6 changed files with 37 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -431,6 +431,7 @@ export class IncomingHeader
public static SHOW_ENFORCE_ROOM_CATEGORY = 3896;
public static CUSTOM_USER_NOTIFICATION = 909;
public static NEW_USER_EXPERIENCE_GIFT_OFFER = 3575;
public static NEW_USER_EXPERIENCE_NOT_COMPLETE = 3639;
public static CONNECTION_ERROR = 1004;
public static ACCOUNT_SAFETY_LOCK_STATUS_CHANGE = 1243;
public static PHONE_COLLECTION_STATE = 2890;

View File

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

View File

@ -1,4 +1,5 @@
export * from './NewUserExperienceGift';
export * from './NewUserExperienceGiftOfferMessageEvent';
export * from './NewUserExperienceGiftOptions';
export * from './NewUserExperienceNotCompleteEvent';
export * from './ProductOffer';

View File

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

View File

@ -1 +1,2 @@
export * from './NewUserExperienceGiftOfferMessageParser';
export * from './NewUserExperienceNotCompleteParser';