@xmobitea/gn-typescript-client 2.0.4 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/GNServerSettingsConfig.debug.json +3 -3
- package/dist/gn.js.client.js +50188 -0
- package/dist/gn.js.client.min.js +1 -1
- package/dist/index.d.ts +190 -190
- package/dist/index.js +24803 -22847
- package/dist/runtime/GNNetwork.d.ts +66 -67
- package/dist/runtime/GNNetworkAuthenticateApi.d.ts +28 -27
- package/dist/runtime/GNNetworkCharacterPlayerApi.d.ts +156 -156
- package/dist/runtime/GNNetworkContentApi.d.ts +33 -33
- package/dist/runtime/GNNetworkDashboardApi.d.ts +30 -30
- package/dist/runtime/GNNetworkGamePlayerApi.d.ts +153 -153
- package/dist/runtime/GNNetworkGroupApi.d.ts +120 -120
- package/dist/runtime/GNNetworkInventoryApi.d.ts +108 -108
- package/dist/runtime/GNNetworkMasterPlayerApi.d.ts +217 -217
- package/dist/runtime/GNNetworkStoreInventoryApi.d.ts +39 -39
- package/dist/runtime/common/Action0.d.ts +1 -1
- package/dist/runtime/common/Action1.d.ts +1 -1
- package/dist/runtime/common/Action2.d.ts +1 -1
- package/dist/runtime/common/Action3.d.ts +1 -1
- package/dist/runtime/common/Action4.d.ts +1 -1
- package/dist/runtime/common/GNData.d.ts +69 -69
- package/dist/runtime/config/GNServerSettings.d.ts +64 -64
- package/dist/runtime/constant/Commands.d.ts +17 -17
- package/dist/runtime/constant/EventCode.d.ts +8 -8
- package/dist/runtime/constant/OperationCode.d.ts +175 -174
- package/dist/runtime/constant/ReturnCode.d.ts +14 -14
- package/dist/runtime/constant/enumType/FriendStatus.d.ts +6 -6
- package/dist/runtime/constant/enumType/GoogleLoginType.d.ts +4 -4
- package/dist/runtime/constant/enumType/GroupStatus.d.ts +6 -6
- package/dist/runtime/constant/enumType/InvalidMemberType.d.ts +17 -17
- package/dist/runtime/constant/enumType/ItemType.d.ts +4 -4
- package/dist/runtime/constant/enumType/LoginType.d.ts +10 -10
- package/dist/runtime/constant/enumType/OwnerType.d.ts +6 -6
- package/dist/runtime/constant/enumType/PermissionDataItem.d.ts +4 -4
- package/dist/runtime/constant/enumType/RequestRole.d.ts +5 -5
- package/dist/runtime/constant/enumType/RequestType.d.ts +12 -12
- package/dist/runtime/constant/enumType/StatisticsAggregationMethod.d.ts +6 -6
- package/dist/runtime/constant/enumType/UserRoleType.d.ts +8 -8
- package/dist/runtime/constant/errorCode/GNErrorCode.d.ts +40 -39
- package/dist/runtime/constant/parameterCode/GNParameterCode.d.ts +376 -375
- package/dist/runtime/constant/parameterCode/ParameterCode.d.ts +6 -6
- package/dist/runtime/entity/DataMember.d.ts +77 -77
- package/dist/runtime/entity/GNMetadata.d.ts +22 -22
- package/dist/runtime/entity/InvalidMember.d.ts +5 -5
- package/dist/runtime/entity/OperationEvent.d.ts +14 -14
- package/dist/runtime/entity/OperationHelper.d.ts +7 -7
- package/dist/runtime/entity/OperationRequest.d.ts +21 -21
- package/dist/runtime/entity/OperationResponse.d.ts +27 -27
- package/dist/runtime/entity/models/AuthenticateModels.d.ts +116 -108
- package/dist/runtime/entity/models/AuthenticateRequestModels.d.ts +118 -111
- package/dist/runtime/entity/models/AuthenticateResponseModels.d.ts +52 -34
- package/dist/runtime/entity/models/CharacterPlayerModels.d.ts +493 -493
- package/dist/runtime/entity/models/CharacterPlayerRequestModels.d.ts +726 -726
- package/dist/runtime/entity/models/CharacterPlayerResponseModels.d.ts +148 -100
- package/dist/runtime/entity/models/ContentModels.d.ts +90 -90
- package/dist/runtime/entity/models/ContentRequestModels.d.ts +111 -111
- package/dist/runtime/entity/models/ContentResponseModels.d.ts +25 -18
- package/dist/runtime/entity/models/DashboardModels.d.ts +546 -545
- package/dist/runtime/entity/models/DashboardRequestModels.d.ts +132 -132
- package/dist/runtime/entity/models/DashboardResponseModels.d.ts +58 -40
- package/dist/runtime/entity/models/GamePlayerModels.d.ts +531 -531
- package/dist/runtime/entity/models/GamePlayerRequestModels.d.ts +711 -711
- package/dist/runtime/entity/models/GamePlayerResponseModels.d.ts +145 -98
- package/dist/runtime/entity/models/GenericModels.d.ts +59 -59
- package/dist/runtime/entity/models/GroupModels.d.ts +387 -387
- package/dist/runtime/entity/models/GroupRequestModels.d.ts +546 -546
- package/dist/runtime/entity/models/GroupResponseModels.d.ts +112 -76
- package/dist/runtime/entity/models/InventoryModels.d.ts +331 -331
- package/dist/runtime/entity/models/InventoryRequestModels.d.ts +486 -486
- package/dist/runtime/entity/models/InventoryResponseModels.d.ts +100 -68
- package/dist/runtime/entity/models/MasterPlayerModels.d.ts +767 -767
- package/dist/runtime/entity/models/MasterPlayerRequestModels.d.ts +1033 -1033
- package/dist/runtime/entity/models/MasterPlayerResponseModels.d.ts +211 -142
- package/dist/runtime/entity/models/StoreInventoryModels.d.ts +187 -187
- package/dist/runtime/entity/models/StoreInventoryRequestModels.d.ts +141 -141
- package/dist/runtime/entity/models/StoreInventoryResponseModels.d.ts +31 -22
- package/dist/runtime/entity/request/CustomOperationRequest.d.ts +21 -19
- package/dist/runtime/entity/response/CustomOperationResponse.d.ts +20 -19
- package/dist/runtime/helper/CodeHelper.d.ts +15 -15
- package/dist/runtime/helper/ConverterService.d.ts +14 -14
- package/dist/runtime/helper/GNSupport.d.ts +5 -5
- package/dist/runtime/logger/GNDebug.d.ts +15 -15
- package/dist/runtime/networking/AuthenticateStatus.d.ts +8 -11
- package/dist/runtime/networking/IPeer.d.ts +12 -12
- package/dist/runtime/networking/NetworkingPeer.d.ts +40 -40
- package/dist/runtime/networking/OperationPending.d.ts +30 -30
- package/dist/runtime/networking/PeerBase.d.ts +30 -30
- package/dist/runtime/networking/handler/IServerEventHandler.d.ts +14 -14
- package/dist/runtime/networking/handler/OnCharacterPlayerFriendUpdateEventHandler.d.ts +13 -13
- package/dist/runtime/networking/handler/OnCharacterPlayerGroupUpdateEventHandler.d.ts +13 -13
- package/dist/runtime/networking/handler/OnGamePlayerFriendUpdateEventHandler.d.ts +13 -13
- package/dist/runtime/networking/handler/OnGamePlayerGroupUpdateEventHandler.d.ts +13 -13
- package/dist/runtime/networking/handler/OnGroupMemberUpdateEventHandler.d.ts +12 -12
- package/dist/runtime/networking/handler/OnGroupMessageUpdateEventHandler.d.ts +12 -12
- package/dist/runtime/networking/http/HttpPeer.d.ts +24 -24
- package/dist/runtime/networking/http/NetworkingHttpPeerBase.d.ts +11 -11
- package/dist/runtime/networking/http/NetworkingPeerAxiosRequest.d.ts +13 -13
- package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.d.ts +25 -25
- package/dist/runtime/networking/socket/NetworkingSocketPeerBase.d.ts +48 -48
- package/dist/runtime/networking/socket/SocketPeer.d.ts +28 -28
- package/dist/runtime/typescript/ServiceUpdate.d.ts +6 -6
- package/package.json +16 -14
- package/tsconfig-build.min.udm.json +13 -0
- package/tsconfig.min.udm.json +9 -0
- package/webpack.config.min.udm.js +48 -0
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { Action0 } from "./../common/Action0";
|
|
2
|
-
import { Action1 } from "./../common/Action1";
|
|
3
|
-
import { GNHashtable } from "./../common/GNData";
|
|
4
|
-
import { OperationRequest } from "./../entity/OperationRequest";
|
|
5
|
-
import { OperationResponse } from "./../entity/OperationResponse";
|
|
6
|
-
import { IServerEventHandler } from "./handler/IServerEventHandler";
|
|
7
|
-
import { OperationEvent } from "./../entity/OperationEvent";
|
|
8
|
-
import { AuthenticateStatus } from "./AuthenticateStatus";
|
|
9
|
-
import { RequestType } from "../constant/enumType/RequestType";
|
|
10
|
-
import { RequestRole } from "../constant/enumType/RequestRole";
|
|
11
|
-
export declare class NetworkingPeer {
|
|
12
|
-
static readonly SYNC_TS: string;
|
|
13
|
-
static readonly UPLOAD_FILE: string;
|
|
14
|
-
static readonly DOWNLOAD_FILE: string;
|
|
15
|
-
static readonly API_JSON: string;
|
|
16
|
-
static readonly API_MSG_PACK: string;
|
|
17
|
-
private socketPeer;
|
|
18
|
-
private httpPeer;
|
|
19
|
-
authenticateStatus: AuthenticateStatus;
|
|
20
|
-
getPing(): number;
|
|
21
|
-
getClientId(): string;
|
|
22
|
-
private lastCurrentServerMilliseconds;
|
|
23
|
-
private lastGetCurrentMilliseconds;
|
|
24
|
-
setServerTimeMilliseconds(currentServerMilliseconds: number): void;
|
|
25
|
-
getServerTimestamp(): number;
|
|
26
|
-
initPeer(): void;
|
|
27
|
-
service(): void;
|
|
28
|
-
sendViaSocket(requestType: RequestType, requestRole: RequestRole, request: OperationRequest, onResponse?: Action1<OperationResponse>, authToken?: string, secretKey?: string, customTags?: GNHashtable): void;
|
|
29
|
-
sendViaHttp(requestType: RequestType, requestRole: RequestRole, request: OperationRequest, onResponse?: Action1<OperationResponse>, authToken?: string, secretKey?: string, customTags?: GNHashtable): void;
|
|
30
|
-
sendRequestAuthSocket(): void;
|
|
31
|
-
connectSocket(_onSocketConnect: Action0): void;
|
|
32
|
-
disconnectSocket(_onSocketDisconnect: Action0): void;
|
|
33
|
-
setOnEventHandler(_onEventHandler: Action1<OperationEvent>): void;
|
|
34
|
-
setOnConnectHandler(_onConnectHandler: Action0): void;
|
|
35
|
-
setOnDisconnectHandler(_onDisconnectHandler: Action0): void;
|
|
36
|
-
removeOnConnectHandler(_onConnectHandler: Action0): void;
|
|
37
|
-
removeOnDisconnectHandler(_onDisconnectHandler: Action0): void;
|
|
38
|
-
subscriberServerEventHandler(serverEventHandler: IServerEventHandler): void;
|
|
39
|
-
syncTs(onResponse?: Action1<number>): void;
|
|
40
|
-
}
|
|
1
|
+
import { Action0 } from "./../common/Action0";
|
|
2
|
+
import { Action1 } from "./../common/Action1";
|
|
3
|
+
import { GNHashtable } from "./../common/GNData";
|
|
4
|
+
import { OperationRequest } from "./../entity/OperationRequest";
|
|
5
|
+
import { OperationResponse } from "./../entity/OperationResponse";
|
|
6
|
+
import { IServerEventHandler } from "./handler/IServerEventHandler";
|
|
7
|
+
import { OperationEvent } from "./../entity/OperationEvent";
|
|
8
|
+
import { AuthenticateStatus } from "./AuthenticateStatus";
|
|
9
|
+
import { RequestType } from "../constant/enumType/RequestType";
|
|
10
|
+
import { RequestRole } from "../constant/enumType/RequestRole";
|
|
11
|
+
export declare class NetworkingPeer {
|
|
12
|
+
static readonly SYNC_TS: string;
|
|
13
|
+
static readonly UPLOAD_FILE: string;
|
|
14
|
+
static readonly DOWNLOAD_FILE: string;
|
|
15
|
+
static readonly API_JSON: string;
|
|
16
|
+
static readonly API_MSG_PACK: string;
|
|
17
|
+
private socketPeer;
|
|
18
|
+
private httpPeer;
|
|
19
|
+
authenticateStatus: AuthenticateStatus;
|
|
20
|
+
getPing(): number;
|
|
21
|
+
getClientId(): string;
|
|
22
|
+
private lastCurrentServerMilliseconds;
|
|
23
|
+
private lastGetCurrentMilliseconds;
|
|
24
|
+
setServerTimeMilliseconds(currentServerMilliseconds: number): void;
|
|
25
|
+
getServerTimestamp(): number;
|
|
26
|
+
initPeer(): void;
|
|
27
|
+
service(): void;
|
|
28
|
+
sendViaSocket(requestType: RequestType, requestRole: RequestRole, request: OperationRequest, onResponse?: Action1<OperationResponse>, authToken?: string, secretKey?: string, customTags?: GNHashtable): void;
|
|
29
|
+
sendViaHttp(requestType: RequestType, requestRole: RequestRole, request: OperationRequest, onResponse?: Action1<OperationResponse>, authToken?: string, secretKey?: string, customTags?: GNHashtable): void;
|
|
30
|
+
sendRequestAuthSocket(): void;
|
|
31
|
+
connectSocket(_onSocketConnect: Action0): void;
|
|
32
|
+
disconnectSocket(_onSocketDisconnect: Action0): void;
|
|
33
|
+
setOnEventHandler(_onEventHandler: Action1<OperationEvent>): void;
|
|
34
|
+
setOnConnectHandler(_onConnectHandler: Action0): void;
|
|
35
|
+
setOnDisconnectHandler(_onDisconnectHandler: Action0): void;
|
|
36
|
+
removeOnConnectHandler(_onConnectHandler: Action0): void;
|
|
37
|
+
removeOnDisconnectHandler(_onDisconnectHandler: Action0): void;
|
|
38
|
+
subscriberServerEventHandler(serverEventHandler: IServerEventHandler): void;
|
|
39
|
+
syncTs(onResponse?: Action1<number>): void;
|
|
40
|
+
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { GNHashtable } from "../common/GNData";
|
|
2
|
-
import { RequestRole } from "../constant/enumType/RequestRole";
|
|
3
|
-
import { RequestType } from "../constant/enumType/RequestType";
|
|
4
|
-
import { Action1 } from "./../common/Action1";
|
|
5
|
-
import { OperationRequest } from "./../entity/OperationRequest";
|
|
6
|
-
import { OperationResponse } from "./../entity/OperationResponse";
|
|
7
|
-
export declare class OperationPending {
|
|
8
|
-
private operationRequest;
|
|
9
|
-
private requestType;
|
|
10
|
-
private requestRole;
|
|
11
|
-
private authToken;
|
|
12
|
-
private secretKey;
|
|
13
|
-
private customTags;
|
|
14
|
-
private onOperationResponse;
|
|
15
|
-
private timeout;
|
|
16
|
-
private firstSend;
|
|
17
|
-
private secondsSend;
|
|
18
|
-
constructor(requestType: RequestType, requestRole: RequestRole, operationRequest: OperationRequest, onOperationResponse: Action1<OperationResponse>, authToken: string, secretKey: string, customTags: GNHashtable);
|
|
19
|
-
getRequestType(): RequestType;
|
|
20
|
-
getRequestRole(): RequestRole;
|
|
21
|
-
getAuthToken(): string;
|
|
22
|
-
getSecretKey(): string;
|
|
23
|
-
getCustomTags(): GNHashtable;
|
|
24
|
-
onSend(): void;
|
|
25
|
-
onRecv(): void;
|
|
26
|
-
getExecuteTimerInMs(): number;
|
|
27
|
-
isTimeout(): boolean;
|
|
28
|
-
getOperationRequest(): OperationRequest;
|
|
29
|
-
getCallback(): Action1<OperationResponse>;
|
|
30
|
-
}
|
|
1
|
+
import { GNHashtable } from "../common/GNData";
|
|
2
|
+
import { RequestRole } from "../constant/enumType/RequestRole";
|
|
3
|
+
import { RequestType } from "../constant/enumType/RequestType";
|
|
4
|
+
import { Action1 } from "./../common/Action1";
|
|
5
|
+
import { OperationRequest } from "./../entity/OperationRequest";
|
|
6
|
+
import { OperationResponse } from "./../entity/OperationResponse";
|
|
7
|
+
export declare class OperationPending {
|
|
8
|
+
private operationRequest;
|
|
9
|
+
private requestType;
|
|
10
|
+
private requestRole;
|
|
11
|
+
private authToken;
|
|
12
|
+
private secretKey;
|
|
13
|
+
private customTags;
|
|
14
|
+
private onOperationResponse;
|
|
15
|
+
private timeout;
|
|
16
|
+
private firstSend;
|
|
17
|
+
private secondsSend;
|
|
18
|
+
constructor(requestType: RequestType, requestRole: RequestRole, operationRequest: OperationRequest, onOperationResponse: Action1<OperationResponse>, authToken: string, secretKey: string, customTags: GNHashtable);
|
|
19
|
+
getRequestType(): RequestType;
|
|
20
|
+
getRequestRole(): RequestRole;
|
|
21
|
+
getAuthToken(): string;
|
|
22
|
+
getSecretKey(): string;
|
|
23
|
+
getCustomTags(): GNHashtable;
|
|
24
|
+
onSend(): void;
|
|
25
|
+
onRecv(): void;
|
|
26
|
+
getExecuteTimerInMs(): number;
|
|
27
|
+
isTimeout(): boolean;
|
|
28
|
+
getOperationRequest(): OperationRequest;
|
|
29
|
+
getCallback(): Action1<OperationResponse>;
|
|
30
|
+
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { RequestRole } from "../constant/enumType/RequestRole";
|
|
2
|
-
import { RequestType } from "../constant/enumType/RequestType";
|
|
3
|
-
import { Action1 } from "./../common/Action1";
|
|
4
|
-
import { GNArray, GNHashtable } from "./../common/GNData";
|
|
5
|
-
import { OperationRequest } from "./../entity/OperationRequest";
|
|
6
|
-
import { OperationResponse } from "./../entity/OperationResponse";
|
|
7
|
-
import { IPeer } from "./IPeer";
|
|
8
|
-
import { OperationPending } from "./OperationPending";
|
|
9
|
-
export declare abstract class PeerBase implements IPeer {
|
|
10
|
-
private operationPendingQueue;
|
|
11
|
-
private operationWaitingResponseDict;
|
|
12
|
-
private static requestId;
|
|
13
|
-
private perMsgTimer;
|
|
14
|
-
private nextSendMsgTimer;
|
|
15
|
-
private checkTimeoutOperationPending;
|
|
16
|
-
protected getSendRate(): number;
|
|
17
|
-
protected setSendRate(sendRate: number): void;
|
|
18
|
-
ping: number;
|
|
19
|
-
private pingLst;
|
|
20
|
-
protected isUse: boolean;
|
|
21
|
-
initPeer(): void;
|
|
22
|
-
private initSendRate;
|
|
23
|
-
protected abstract initGNSocketObject(): void;
|
|
24
|
-
enqueue(requestType: RequestType, requestRole: RequestRole, operationRequest: OperationRequest, onOperationResponse: Action1<OperationResponse>, authToken: string, secretKey: string, customTags: GNHashtable): void;
|
|
25
|
-
isUsing(): boolean;
|
|
26
|
-
service(): void;
|
|
27
|
-
protected onResponseHandler(obj: GNArray, isEncrypted: boolean): void;
|
|
28
|
-
send(operationPending: OperationPending): void;
|
|
29
|
-
addPing(value: number): void;
|
|
30
|
-
}
|
|
1
|
+
import { RequestRole } from "../constant/enumType/RequestRole";
|
|
2
|
+
import { RequestType } from "../constant/enumType/RequestType";
|
|
3
|
+
import { Action1 } from "./../common/Action1";
|
|
4
|
+
import { GNArray, GNHashtable } from "./../common/GNData";
|
|
5
|
+
import { OperationRequest } from "./../entity/OperationRequest";
|
|
6
|
+
import { OperationResponse } from "./../entity/OperationResponse";
|
|
7
|
+
import { IPeer } from "./IPeer";
|
|
8
|
+
import { OperationPending } from "./OperationPending";
|
|
9
|
+
export declare abstract class PeerBase implements IPeer {
|
|
10
|
+
private operationPendingQueue;
|
|
11
|
+
private operationWaitingResponseDict;
|
|
12
|
+
private static requestId;
|
|
13
|
+
private perMsgTimer;
|
|
14
|
+
private nextSendMsgTimer;
|
|
15
|
+
private checkTimeoutOperationPending;
|
|
16
|
+
protected getSendRate(): number;
|
|
17
|
+
protected setSendRate(sendRate: number): void;
|
|
18
|
+
ping: number;
|
|
19
|
+
private pingLst;
|
|
20
|
+
protected isUse: boolean;
|
|
21
|
+
initPeer(): void;
|
|
22
|
+
private initSendRate;
|
|
23
|
+
protected abstract initGNSocketObject(): void;
|
|
24
|
+
enqueue(requestType: RequestType, requestRole: RequestRole, operationRequest: OperationRequest, onOperationResponse: Action1<OperationResponse>, authToken: string, secretKey: string, customTags: GNHashtable): void;
|
|
25
|
+
isUsing(): boolean;
|
|
26
|
+
service(): void;
|
|
27
|
+
protected onResponseHandler(obj: GNArray, isEncrypted: boolean): void;
|
|
28
|
+
send(operationPending: OperationPending): void;
|
|
29
|
+
addPing(value: number): void;
|
|
30
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { OperationEvent } from "./../../entity/OperationEvent";
|
|
2
|
-
export interface IServerEventHandler {
|
|
3
|
-
getEventCode(): number;
|
|
4
|
-
handle(operationEvent: OperationEvent): void;
|
|
5
|
-
}
|
|
6
|
-
export declare namespace IServerEventHandler {
|
|
7
|
-
type Constructor<T> = {
|
|
8
|
-
new (...args: any[]): T;
|
|
9
|
-
readonly prototype: T;
|
|
10
|
-
};
|
|
11
|
-
export function getImplementations(): Constructor<IServerEventHandler>[];
|
|
12
|
-
export function registerEvent<T extends Constructor<IServerEventHandler>>(ctor: T): T;
|
|
13
|
-
export {};
|
|
14
|
-
}
|
|
1
|
+
import { OperationEvent } from "./../../entity/OperationEvent";
|
|
2
|
+
export interface IServerEventHandler {
|
|
3
|
+
getEventCode(): number;
|
|
4
|
+
handle(operationEvent: OperationEvent): void;
|
|
5
|
+
}
|
|
6
|
+
export declare namespace IServerEventHandler {
|
|
7
|
+
type Constructor<T> = {
|
|
8
|
+
new (...args: any[]): T;
|
|
9
|
+
readonly prototype: T;
|
|
10
|
+
};
|
|
11
|
+
export function getImplementations(): Constructor<IServerEventHandler>[];
|
|
12
|
+
export function registerEvent<T extends Constructor<IServerEventHandler>>(ctor: T): T;
|
|
13
|
+
export {};
|
|
14
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Action1 } from "../../common/Action1";
|
|
2
|
-
import { OperationEvent } from "../../entity/OperationEvent";
|
|
3
|
-
import { GenericModels } from "../../entity/models/GenericModels";
|
|
4
|
-
import { IServerEventHandler } from "./IServerEventHandler";
|
|
5
|
-
export declare class CharacterPlayerFriendUpdate {
|
|
6
|
-
characterId: string;
|
|
7
|
-
playerFriends: Array<GenericModels.FriendItem>;
|
|
8
|
-
}
|
|
9
|
-
export declare class OnCharacterPlayerFriendUpdateEventHandler implements IServerEventHandler {
|
|
10
|
-
static onUpdate: Action1<CharacterPlayerFriendUpdate>;
|
|
11
|
-
getEventCode(): number;
|
|
12
|
-
handle(operationEvent: OperationEvent): void;
|
|
13
|
-
}
|
|
1
|
+
import { Action1 } from "../../common/Action1";
|
|
2
|
+
import { OperationEvent } from "../../entity/OperationEvent";
|
|
3
|
+
import { GenericModels } from "../../entity/models/GenericModels";
|
|
4
|
+
import { IServerEventHandler } from "./IServerEventHandler";
|
|
5
|
+
export declare class CharacterPlayerFriendUpdate {
|
|
6
|
+
characterId: string;
|
|
7
|
+
playerFriends: Array<GenericModels.FriendItem>;
|
|
8
|
+
}
|
|
9
|
+
export declare class OnCharacterPlayerFriendUpdateEventHandler implements IServerEventHandler {
|
|
10
|
+
static onUpdate: Action1<CharacterPlayerFriendUpdate>;
|
|
11
|
+
getEventCode(): number;
|
|
12
|
+
handle(operationEvent: OperationEvent): void;
|
|
13
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Action1 } from "../../common/Action1";
|
|
2
|
-
import { OperationEvent } from "../../entity/OperationEvent";
|
|
3
|
-
import { GenericModels } from "../../entity/models/GenericModels";
|
|
4
|
-
import { IServerEventHandler } from "./IServerEventHandler";
|
|
5
|
-
export declare class CharacterPlayerGroupUpdate {
|
|
6
|
-
characterId: string;
|
|
7
|
-
playerGroups: Array<GenericModels.GroupItem>;
|
|
8
|
-
}
|
|
9
|
-
export declare class OnCharacterPlayerGroupUpdateEventHandler implements IServerEventHandler {
|
|
10
|
-
static onUpdate: Action1<CharacterPlayerGroupUpdate>;
|
|
11
|
-
getEventCode(): number;
|
|
12
|
-
handle(operationEvent: OperationEvent): void;
|
|
13
|
-
}
|
|
1
|
+
import { Action1 } from "../../common/Action1";
|
|
2
|
+
import { OperationEvent } from "../../entity/OperationEvent";
|
|
3
|
+
import { GenericModels } from "../../entity/models/GenericModels";
|
|
4
|
+
import { IServerEventHandler } from "./IServerEventHandler";
|
|
5
|
+
export declare class CharacterPlayerGroupUpdate {
|
|
6
|
+
characterId: string;
|
|
7
|
+
playerGroups: Array<GenericModels.GroupItem>;
|
|
8
|
+
}
|
|
9
|
+
export declare class OnCharacterPlayerGroupUpdateEventHandler implements IServerEventHandler {
|
|
10
|
+
static onUpdate: Action1<CharacterPlayerGroupUpdate>;
|
|
11
|
+
getEventCode(): number;
|
|
12
|
+
handle(operationEvent: OperationEvent): void;
|
|
13
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Action1 } from "../../common/Action1";
|
|
2
|
-
import { OperationEvent } from "../../entity/OperationEvent";
|
|
3
|
-
import { GenericModels } from "../../entity/models/GenericModels";
|
|
4
|
-
import { IServerEventHandler } from "./IServerEventHandler";
|
|
5
|
-
export declare class GamePlayerFriendUpdate {
|
|
6
|
-
characterId?: string;
|
|
7
|
-
playerFriends: Array<GenericModels.FriendItem>;
|
|
8
|
-
}
|
|
9
|
-
export declare class OnGamePlayerFriendUpdateEventHandler implements IServerEventHandler {
|
|
10
|
-
static onUpdate: Action1<GamePlayerFriendUpdate>;
|
|
11
|
-
getEventCode(): number;
|
|
12
|
-
handle(operationEvent: OperationEvent): void;
|
|
13
|
-
}
|
|
1
|
+
import { Action1 } from "../../common/Action1";
|
|
2
|
+
import { OperationEvent } from "../../entity/OperationEvent";
|
|
3
|
+
import { GenericModels } from "../../entity/models/GenericModels";
|
|
4
|
+
import { IServerEventHandler } from "./IServerEventHandler";
|
|
5
|
+
export declare class GamePlayerFriendUpdate {
|
|
6
|
+
characterId?: string;
|
|
7
|
+
playerFriends: Array<GenericModels.FriendItem>;
|
|
8
|
+
}
|
|
9
|
+
export declare class OnGamePlayerFriendUpdateEventHandler implements IServerEventHandler {
|
|
10
|
+
static onUpdate: Action1<GamePlayerFriendUpdate>;
|
|
11
|
+
getEventCode(): number;
|
|
12
|
+
handle(operationEvent: OperationEvent): void;
|
|
13
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Action1 } from "../../common/Action1";
|
|
2
|
-
import { OperationEvent } from "../../entity/OperationEvent";
|
|
3
|
-
import { GenericModels } from "../../entity/models/GenericModels";
|
|
4
|
-
import { IServerEventHandler } from "./IServerEventHandler";
|
|
5
|
-
export declare class GamePlayerGroupUpdate {
|
|
6
|
-
characterId?: string;
|
|
7
|
-
playerGroups: Array<GenericModels.GroupItem>;
|
|
8
|
-
}
|
|
9
|
-
export declare class OnGamePlayerGroupUpdateEventHandler implements IServerEventHandler {
|
|
10
|
-
static onUpdate: Action1<GamePlayerGroupUpdate>;
|
|
11
|
-
getEventCode(): number;
|
|
12
|
-
handle(operationEvent: OperationEvent): void;
|
|
13
|
-
}
|
|
1
|
+
import { Action1 } from "../../common/Action1";
|
|
2
|
+
import { OperationEvent } from "../../entity/OperationEvent";
|
|
3
|
+
import { GenericModels } from "../../entity/models/GenericModels";
|
|
4
|
+
import { IServerEventHandler } from "./IServerEventHandler";
|
|
5
|
+
export declare class GamePlayerGroupUpdate {
|
|
6
|
+
characterId?: string;
|
|
7
|
+
playerGroups: Array<GenericModels.GroupItem>;
|
|
8
|
+
}
|
|
9
|
+
export declare class OnGamePlayerGroupUpdateEventHandler implements IServerEventHandler {
|
|
10
|
+
static onUpdate: Action1<GamePlayerGroupUpdate>;
|
|
11
|
+
getEventCode(): number;
|
|
12
|
+
handle(operationEvent: OperationEvent): void;
|
|
13
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Action1 } from "../../common/Action1";
|
|
2
|
-
import { OperationEvent } from "../../entity/OperationEvent";
|
|
3
|
-
import { GenericModels } from "../../entity/models/GenericModels";
|
|
4
|
-
import { IServerEventHandler } from "./IServerEventHandler";
|
|
5
|
-
export declare class GroupMemberUpdate {
|
|
6
|
-
members: Array<GenericModels.MemberItem>;
|
|
7
|
-
}
|
|
8
|
-
export declare class OnGroupMemberUpdateEventHandler implements IServerEventHandler {
|
|
9
|
-
static onUpdate: Action1<GroupMemberUpdate>;
|
|
10
|
-
getEventCode(): number;
|
|
11
|
-
handle(operationEvent: OperationEvent): void;
|
|
12
|
-
}
|
|
1
|
+
import { Action1 } from "../../common/Action1";
|
|
2
|
+
import { OperationEvent } from "../../entity/OperationEvent";
|
|
3
|
+
import { GenericModels } from "../../entity/models/GenericModels";
|
|
4
|
+
import { IServerEventHandler } from "./IServerEventHandler";
|
|
5
|
+
export declare class GroupMemberUpdate {
|
|
6
|
+
members: Array<GenericModels.MemberItem>;
|
|
7
|
+
}
|
|
8
|
+
export declare class OnGroupMemberUpdateEventHandler implements IServerEventHandler {
|
|
9
|
+
static onUpdate: Action1<GroupMemberUpdate>;
|
|
10
|
+
getEventCode(): number;
|
|
11
|
+
handle(operationEvent: OperationEvent): void;
|
|
12
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Action1 } from "../../common/Action1";
|
|
2
|
-
import { OperationEvent } from "../../entity/OperationEvent";
|
|
3
|
-
import { GroupModels } from "../../entity/models/GroupModels";
|
|
4
|
-
import { IServerEventHandler } from "./IServerEventHandler";
|
|
5
|
-
export declare class GroupMessageUpdate {
|
|
6
|
-
groupMessages: Array<GroupModels.GroupMessageResponseData>;
|
|
7
|
-
}
|
|
8
|
-
export declare class OnGroupMessageUpdateEventHandler implements IServerEventHandler {
|
|
9
|
-
static onUpdate: Action1<GroupMessageUpdate>;
|
|
10
|
-
getEventCode(): number;
|
|
11
|
-
handle(operationEvent: OperationEvent): void;
|
|
12
|
-
}
|
|
1
|
+
import { Action1 } from "../../common/Action1";
|
|
2
|
+
import { OperationEvent } from "../../entity/OperationEvent";
|
|
3
|
+
import { GroupModels } from "../../entity/models/GroupModels";
|
|
4
|
+
import { IServerEventHandler } from "./IServerEventHandler";
|
|
5
|
+
export declare class GroupMessageUpdate {
|
|
6
|
+
groupMessages: Array<GroupModels.GroupMessageResponseData>;
|
|
7
|
+
}
|
|
8
|
+
export declare class OnGroupMessageUpdateEventHandler implements IServerEventHandler {
|
|
9
|
+
static onUpdate: Action1<GroupMessageUpdate>;
|
|
10
|
+
getEventCode(): number;
|
|
11
|
+
handle(operationEvent: OperationEvent): void;
|
|
12
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { Action1 } from "../../common/Action1";
|
|
2
|
-
import { OperationPending } from "../OperationPending";
|
|
3
|
-
import { PeerBase } from "../PeerBase";
|
|
4
|
-
export declare class HttpAppResponse {
|
|
5
|
-
statusCode: number;
|
|
6
|
-
error: string;
|
|
7
|
-
data: Uint8Array;
|
|
8
|
-
text: string;
|
|
9
|
-
hasError(): boolean;
|
|
10
|
-
toString(): string;
|
|
11
|
-
}
|
|
12
|
-
export declare enum PostType {
|
|
13
|
-
Json = 0,
|
|
14
|
-
MsgPack = 1
|
|
15
|
-
}
|
|
16
|
-
export declare class HttpPeer extends PeerBase {
|
|
17
|
-
private networkingHttpPeerBase;
|
|
18
|
-
private static readonly JSON_CHAR_KNOWN;
|
|
19
|
-
protected initGNSocketObject(): void;
|
|
20
|
-
send(operationPending: OperationPending): void;
|
|
21
|
-
private onSendOperationRequestResponse;
|
|
22
|
-
getRequest(subUri: string, onHttpAppResponse: Action1<HttpAppResponse>, timeout?: number, authToken?: string, secretKey?: string): void;
|
|
23
|
-
uploadFile(fileId: string, content: Uint8Array, mimetype: string, onHttpAppResponse: Action1<HttpAppResponse>, timeout?: number): void;
|
|
24
|
-
}
|
|
1
|
+
import { Action1 } from "../../common/Action1";
|
|
2
|
+
import { OperationPending } from "../OperationPending";
|
|
3
|
+
import { PeerBase } from "../PeerBase";
|
|
4
|
+
export declare class HttpAppResponse {
|
|
5
|
+
statusCode: number;
|
|
6
|
+
error: string;
|
|
7
|
+
data: Uint8Array;
|
|
8
|
+
text: string;
|
|
9
|
+
hasError(): boolean;
|
|
10
|
+
toString(): string;
|
|
11
|
+
}
|
|
12
|
+
export declare enum PostType {
|
|
13
|
+
Json = 0,
|
|
14
|
+
MsgPack = 1
|
|
15
|
+
}
|
|
16
|
+
export declare class HttpPeer extends PeerBase {
|
|
17
|
+
private networkingHttpPeerBase;
|
|
18
|
+
private static readonly JSON_CHAR_KNOWN;
|
|
19
|
+
protected initGNSocketObject(): void;
|
|
20
|
+
send(operationPending: OperationPending): void;
|
|
21
|
+
private onSendOperationRequestResponse;
|
|
22
|
+
getRequest(subUri: string, onHttpAppResponse: Action1<HttpAppResponse>, timeout?: number, authToken?: string, secretKey?: string): void;
|
|
23
|
+
uploadFile(fileId: string, content: Uint8Array, mimetype: string, onHttpAppResponse: Action1<HttpAppResponse>, timeout?: number): void;
|
|
24
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Action1 } from "../../common/Action1";
|
|
2
|
-
import { GNHashtable } from "../../common/GNData";
|
|
3
|
-
import { HttpAppResponse, PostType } from "./HttpPeer";
|
|
4
|
-
export declare abstract class NetworkingHttpPeerBase {
|
|
5
|
-
protected httpUrl: string;
|
|
6
|
-
protected userAgent: string;
|
|
7
|
-
abstract getRequest(subUri: string, onHttpAppResponse: Action1<HttpAppResponse>, timeout: number, authToken: string, secretKey: string): void;
|
|
8
|
-
abstract postRequest(subUri: string, param: GNHashtable, postType: PostType, onHttpAppResponse: Action1<HttpAppResponse>, timeout: number, authToken: string, secretKey: string, customTags: GNHashtable): void;
|
|
9
|
-
abstract postRequestUpload(subUri: string, content: Uint8Array, mimetype: string, onHttpAppResponse: Action1<HttpAppResponse>, timeout: number): void;
|
|
10
|
-
init(httpUrl: string, userAgent: string): void;
|
|
11
|
-
}
|
|
1
|
+
import { Action1 } from "../../common/Action1";
|
|
2
|
+
import { GNHashtable } from "../../common/GNData";
|
|
3
|
+
import { HttpAppResponse, PostType } from "./HttpPeer";
|
|
4
|
+
export declare abstract class NetworkingHttpPeerBase {
|
|
5
|
+
protected httpUrl: string;
|
|
6
|
+
protected userAgent: string;
|
|
7
|
+
abstract getRequest(subUri: string, onHttpAppResponse: Action1<HttpAppResponse>, timeout: number, authToken: string, secretKey: string): void;
|
|
8
|
+
abstract postRequest(subUri: string, param: GNHashtable, postType: PostType, onHttpAppResponse: Action1<HttpAppResponse>, timeout: number, authToken: string, secretKey: string, customTags: GNHashtable): void;
|
|
9
|
+
abstract postRequestUpload(subUri: string, content: Uint8Array, mimetype: string, onHttpAppResponse: Action1<HttpAppResponse>, timeout: number): void;
|
|
10
|
+
init(httpUrl: string, userAgent: string): void;
|
|
11
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Action1 } from "../../common/Action1";
|
|
2
|
-
import { GNHashtable } from "../../common/GNData";
|
|
3
|
-
import { HttpAppResponse, PostType } from "./HttpPeer";
|
|
4
|
-
import { NetworkingHttpPeerBase } from "./NetworkingHttpPeerBase";
|
|
5
|
-
export declare class NetworkingPeerAxiosRequest extends NetworkingHttpPeerBase {
|
|
6
|
-
getRequest(subUri: string, onHttpAppResponse: Action1<HttpAppResponse>, timeout: number, authToken: string, secretKey: string): void;
|
|
7
|
-
postRequest(subUri: string, param: GNHashtable, postType: PostType, onHttpAppResponse: Action1<HttpAppResponse>, timeout: number, authToken: string, secretKey: string, customTags: GNHashtable): void;
|
|
8
|
-
postRequestUpload(subUri: string, content: Uint8Array, mimetype: string, onHttpAppResponse: Action1<HttpAppResponse>, timeout: number): void;
|
|
9
|
-
private getRequestAxios;
|
|
10
|
-
private postRequestAxios;
|
|
11
|
-
private uint8ArrayToString;
|
|
12
|
-
private toBuffers;
|
|
13
|
-
}
|
|
1
|
+
import { Action1 } from "../../common/Action1";
|
|
2
|
+
import { GNHashtable } from "../../common/GNData";
|
|
3
|
+
import { HttpAppResponse, PostType } from "./HttpPeer";
|
|
4
|
+
import { NetworkingHttpPeerBase } from "./NetworkingHttpPeerBase";
|
|
5
|
+
export declare class NetworkingPeerAxiosRequest extends NetworkingHttpPeerBase {
|
|
6
|
+
getRequest(subUri: string, onHttpAppResponse: Action1<HttpAppResponse>, timeout: number, authToken: string, secretKey: string): void;
|
|
7
|
+
postRequest(subUri: string, param: GNHashtable, postType: PostType, onHttpAppResponse: Action1<HttpAppResponse>, timeout: number, authToken: string, secretKey: string, customTags: GNHashtable): void;
|
|
8
|
+
postRequestUpload(subUri: string, content: Uint8Array, mimetype: string, onHttpAppResponse: Action1<HttpAppResponse>, timeout: number): void;
|
|
9
|
+
private getRequestAxios;
|
|
10
|
+
private postRequestAxios;
|
|
11
|
+
private uint8ArrayToString;
|
|
12
|
+
private toBuffers;
|
|
13
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { Action0 } from "../../common/Action0";
|
|
2
|
-
import { OperationRequest } from "../../entity/OperationRequest";
|
|
3
|
-
import { NetworkingSocketPeerBase } from "./NetworkingSocketPeerBase";
|
|
4
|
-
import { RequestType } from "../../constant/enumType/RequestType";
|
|
5
|
-
import { RequestRole } from "../../constant/enumType/RequestRole";
|
|
6
|
-
import { GNHashtable } from "../../common/GNData";
|
|
7
|
-
export declare class NetworkingPeerSocketIOClient extends NetworkingSocketPeerBase {
|
|
8
|
-
private socketManager;
|
|
9
|
-
private socket;
|
|
10
|
-
private isConnected;
|
|
11
|
-
isWsConnected: boolean;
|
|
12
|
-
sendRequestAuthSocket(): void;
|
|
13
|
-
reInitNewSocket(): void;
|
|
14
|
-
private onResponseMsgPack;
|
|
15
|
-
private onEventMsgPack;
|
|
16
|
-
private onResponseJson;
|
|
17
|
-
private onEventJson;
|
|
18
|
-
private onConnect;
|
|
19
|
-
private onDisconnect;
|
|
20
|
-
private onError;
|
|
21
|
-
init(url: string, reconnectDelay: number, pingInterval: number, pingTimeout: number): void;
|
|
22
|
-
protected emit(requestType: RequestType, requestRole: RequestRole, operationRequest: OperationRequest, authToken: string, secretKey: string, customTags: GNHashtable): void;
|
|
23
|
-
close(_onSocketDisconnect: Action0): void;
|
|
24
|
-
connect(_onSocketConnect: Action0): void;
|
|
25
|
-
}
|
|
1
|
+
import { Action0 } from "../../common/Action0";
|
|
2
|
+
import { OperationRequest } from "../../entity/OperationRequest";
|
|
3
|
+
import { NetworkingSocketPeerBase } from "./NetworkingSocketPeerBase";
|
|
4
|
+
import { RequestType } from "../../constant/enumType/RequestType";
|
|
5
|
+
import { RequestRole } from "../../constant/enumType/RequestRole";
|
|
6
|
+
import { GNHashtable } from "../../common/GNData";
|
|
7
|
+
export declare class NetworkingPeerSocketIOClient extends NetworkingSocketPeerBase {
|
|
8
|
+
private socketManager;
|
|
9
|
+
private socket;
|
|
10
|
+
private isConnected;
|
|
11
|
+
isWsConnected: boolean;
|
|
12
|
+
sendRequestAuthSocket(): void;
|
|
13
|
+
reInitNewSocket(): void;
|
|
14
|
+
private onResponseMsgPack;
|
|
15
|
+
private onEventMsgPack;
|
|
16
|
+
private onResponseJson;
|
|
17
|
+
private onEventJson;
|
|
18
|
+
private onConnect;
|
|
19
|
+
private onDisconnect;
|
|
20
|
+
private onError;
|
|
21
|
+
init(url: string, reconnectDelay: number, pingInterval: number, pingTimeout: number): void;
|
|
22
|
+
protected emit(requestType: RequestType, requestRole: RequestRole, operationRequest: OperationRequest, authToken: string, secretKey: string, customTags: GNHashtable): void;
|
|
23
|
+
close(_onSocketDisconnect: Action0): void;
|
|
24
|
+
connect(_onSocketConnect: Action0): void;
|
|
25
|
+
}
|