#28 - CitizenshipVipOfferPromoEnabledEvent added

This commit is contained in:
oobjectt 2022-12-25 18:30:11 +01:00
parent 26741b78a7
commit 184c6194d4
6 changed files with 37 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -228,6 +228,7 @@ export class IncomingHeader
public static USER_INFO = 2725;
public static USER_OUTFITS = 3315;
public static USER_PERKS = 2586;
public static PERK_CITIZENSHIP_VIP_OFFER_PROMO_ENABLED = 2278;
public static USER_PERMISSIONS = 411;
public static USER_PET_ADD = 2101;
public static USER_PET_REMOVE = 3253;

View File

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

View File

@ -1 +1,2 @@
export * from './CitizenshipVipOfferPromoEnabledEvent';
export * from './PerkAllowancesMessageEvent';

View File

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

View File

@ -1,2 +1,3 @@
export * from './CitizenshipVipOfferPromoEnabledMessageParser';
export * from './common';
export * from './PerkAllowancesMessageParser';