From 45d55ff30788aedbab1b4bffd6e2aaeec728c128 Mon Sep 17 00:00:00 2001 From: Chomp Date: Mon, 25 Nov 2024 13:49:35 +0000 Subject: [PATCH] Renamed function to match endpoint --- project/src/callbacks/MatchCallbacks.ts | 7 ++++++- project/src/routers/static/MatchStaticRouter.ts | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/project/src/callbacks/MatchCallbacks.ts b/project/src/callbacks/MatchCallbacks.ts index 3f538746..7daf05e3 100644 --- a/project/src/callbacks/MatchCallbacks.ts +++ b/project/src/callbacks/MatchCallbacks.ts @@ -44,10 +44,11 @@ export class MatchCallbacks { } /** Handle client/match/group/exit_from_menu */ - public exitToMenu(url: string, info: IEmptyRequestData, sessionID: string): INullResponseData { + public exitFromMenu(url: string, info: IEmptyRequestData, sessionID: string): INullResponseData { return this.httpResponse.nullResponse(); } + /** Handle client/match/group/current */ public groupCurrent( url: string, info: IEmptyRequestData, @@ -56,10 +57,12 @@ export class MatchCallbacks { return this.httpResponse.getBody({ squad: [] }); } + /** Handle client/match/group/looking/start */ public startGroupSearch(url: string, info: IEmptyRequestData, sessionID: string): INullResponseData { return this.httpResponse.nullResponse(); } + /** Handle client/match/group/looking/stop */ public stopGroupSearch(url: string, info: IEmptyRequestData, sessionID: string): INullResponseData { return this.httpResponse.nullResponse(); } @@ -113,10 +116,12 @@ export class MatchCallbacks { return this.httpResponse.getBody(true); } + /** Handle client/putMetrics */ public putMetrics(url: string, request: IPutMetricsRequestData, sessionId: string): INullResponseData { return this.httpResponse.nullResponse(); } + /** Handle client/analytics/event-disconnect */ public eventDisconnect(url: string, request: IPutMetricsRequestData, sessionId: string): INullResponseData { return this.httpResponse.nullResponse(); } diff --git a/project/src/routers/static/MatchStaticRouter.ts b/project/src/routers/static/MatchStaticRouter.ts index c36ea0d8..9e1fc646 100644 --- a/project/src/routers/static/MatchStaticRouter.ts +++ b/project/src/routers/static/MatchStaticRouter.ts @@ -96,7 +96,7 @@ export class MatchStaticRouter extends StaticRouter { new RouteAction( "/client/match/group/exit_from_menu", async (url: string, info: any, sessionID: string, output: string): Promise => { - return this.matchCallbacks.exitToMenu(url, info, sessionID); + return this.matchCallbacks.exitFromMenu(url, info, sessionID); }, ), new RouteAction(