mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-29 18:50:51 +01:00
Merge branch 'oobjectt-extended-profile-changed'
This commit is contained in:
commit
12765bd0a4
File diff suppressed because one or more lines are too long
@ -430,4 +430,5 @@ export class IncomingHeader
|
||||
public static PHONE_COLLECTION_STATE = 2890;
|
||||
public static PHONE_TRY_NUMBER_RESULT = 800;
|
||||
public static PHONE_TRY_VERIFICATION_CODE_RESULT = 91;
|
||||
public static EXTENDED_PROFILE_CHANGED = 876;
|
||||
}
|
||||
|
@ -0,0 +1,16 @@
|
||||
import { IMessageEvent } from '../../../../../api';
|
||||
import { MessageEvent } from '../../../../../events';
|
||||
import { ExtendedProfileChangedMessageParser } from '../../parser';
|
||||
|
||||
export class ExtendedProfileChangedMessageEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, ExtendedProfileChangedMessageParser);
|
||||
}
|
||||
|
||||
public getParser(): ExtendedProfileChangedMessageParser
|
||||
{
|
||||
return this.parser as ExtendedProfileChangedMessageParser;
|
||||
}
|
||||
}
|
@ -2,6 +2,7 @@ export * from './access';
|
||||
export * from './AccountSafetyLockStatusChangeMessageEvent';
|
||||
export * from './ApproveNameMessageEvent';
|
||||
export * from './data';
|
||||
export * from './ExtendedProfileChangedMessageEvent';
|
||||
export * from './GroupDetailsChangedMessageEvent';
|
||||
export * from './GroupMembershipRequestedMessageEvent';
|
||||
export * from './GuildEditFailedMessageEvent';
|
||||
|
@ -0,0 +1,27 @@
|
||||
import { IMessageDataWrapper, IMessageParser } from '../../../../../api';
|
||||
|
||||
export class ExtendedProfileChangedMessageParser implements IMessageParser
|
||||
{
|
||||
private _userId: number;
|
||||
|
||||
public flush(): boolean
|
||||
{
|
||||
this._userId = -1;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public parse(wrapper: IMessageDataWrapper): boolean
|
||||
{
|
||||
if(!wrapper) return false;
|
||||
|
||||
this._userId = wrapper.readInt();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public get userId(): number
|
||||
{
|
||||
return this._userId;
|
||||
}
|
||||
}
|
@ -2,6 +2,7 @@ export * from './access';
|
||||
export * from './AccountSafetyLockStatusChangeParser';
|
||||
export * from './ApproveNameResultParser';
|
||||
export * from './data';
|
||||
export * from './ExtendedProfileChangedMessageParser';
|
||||
export * from './GroupDetailsChangedMessageParser';
|
||||
export * from './GroupMembershipRequestedMessageParser';
|
||||
export * from './GuildEditFailedMessageParser';
|
||||
|
Loading…
Reference in New Issue
Block a user