mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-18 22:36:27 +01:00
#28 - IdentityAccountsEvent added
This commit is contained in:
parent
e70d9cc804
commit
aa15e5bc22
File diff suppressed because one or more lines are too long
@ -429,4 +429,5 @@ export class IncomingHeader
|
|||||||
public static PHONE_COLLECTION_STATE = 2890;
|
public static PHONE_COLLECTION_STATE = 2890;
|
||||||
public static PHONE_TRY_NUMBER_RESULT = 800;
|
public static PHONE_TRY_NUMBER_RESULT = 800;
|
||||||
public static PHONE_TRY_VERIFICATION_CODE_RESULT = 91;
|
public static PHONE_TRY_VERIFICATION_CODE_RESULT = 91;
|
||||||
|
public static HANDSHAKE_IDENTITY_ACCOUNT = 3523;
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
import { IMessageEvent } from '../../../../../api';
|
||||||
|
import { MessageEvent } from '../../../../../events';
|
||||||
|
import { IdentityAccountsParser } from '../../parser';
|
||||||
|
|
||||||
|
export class IdentityAccountsEvent extends MessageEvent implements IMessageEvent
|
||||||
|
{
|
||||||
|
constructor(callBack: Function)
|
||||||
|
{
|
||||||
|
super(callBack, IdentityAccountsParser);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getParser(): IdentityAccountsParser
|
||||||
|
{
|
||||||
|
return this.parser as IdentityAccountsParser;
|
||||||
|
}
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
|
export * from './IdentityAccountsEvent';
|
||||||
export * from './NoobnessLevelMessageEvent';
|
export * from './NoobnessLevelMessageEvent';
|
||||||
|
@ -0,0 +1,39 @@
|
|||||||
|
import { IMessageDataWrapper, IMessageParser } from '../../../../../api';
|
||||||
|
|
||||||
|
export class IdentityAccountsParser implements IMessageParser
|
||||||
|
{
|
||||||
|
private _Str_8999: Map<number, string>;
|
||||||
|
|
||||||
|
public flush(): boolean
|
||||||
|
{
|
||||||
|
if(this._Str_8999)
|
||||||
|
{
|
||||||
|
this._Str_8999 = new Map();
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public parse(wrapper: IMessageDataWrapper): boolean
|
||||||
|
{
|
||||||
|
if(!wrapper) return false;
|
||||||
|
|
||||||
|
this._Str_8999 = new Map();
|
||||||
|
|
||||||
|
let totalCount = wrapper.readInt();
|
||||||
|
|
||||||
|
while(totalCount > 0)
|
||||||
|
{
|
||||||
|
this._Str_8999.set(wrapper.readInt(), wrapper.readString());
|
||||||
|
|
||||||
|
totalCount--;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get Str_8999(): Map<number, string>
|
||||||
|
{
|
||||||
|
return this._Str_8999;
|
||||||
|
}
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
|
export * from './IdentityAccountsParser';
|
||||||
export * from './NoobnessLevelMessageParser';
|
export * from './NoobnessLevelMessageParser';
|
||||||
|
Loading…
Reference in New Issue
Block a user