Skip to content

Commit 45d55ff

Browse files
author
Chomp
committed
Renamed function to match endpoint
1 parent b9991b3 commit 45d55ff

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

project/src/callbacks/MatchCallbacks.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,11 @@ export class MatchCallbacks {
4444
}
4545

4646
/** Handle client/match/group/exit_from_menu */
47-
public exitToMenu(url: string, info: IEmptyRequestData, sessionID: string): INullResponseData {
47+
public exitFromMenu(url: string, info: IEmptyRequestData, sessionID: string): INullResponseData {
4848
return this.httpResponse.nullResponse();
4949
}
5050

51+
/** Handle client/match/group/current */
5152
public groupCurrent(
5253
url: string,
5354
info: IEmptyRequestData,
@@ -56,10 +57,12 @@ export class MatchCallbacks {
5657
return this.httpResponse.getBody({ squad: [] });
5758
}
5859

60+
/** Handle client/match/group/looking/start */
5961
public startGroupSearch(url: string, info: IEmptyRequestData, sessionID: string): INullResponseData {
6062
return this.httpResponse.nullResponse();
6163
}
6264

65+
/** Handle client/match/group/looking/stop */
6366
public stopGroupSearch(url: string, info: IEmptyRequestData, sessionID: string): INullResponseData {
6467
return this.httpResponse.nullResponse();
6568
}
@@ -113,10 +116,12 @@ export class MatchCallbacks {
113116
return this.httpResponse.getBody(true);
114117
}
115118

119+
/** Handle client/putMetrics */
116120
public putMetrics(url: string, request: IPutMetricsRequestData, sessionId: string): INullResponseData {
117121
return this.httpResponse.nullResponse();
118122
}
119123

124+
/** Handle client/analytics/event-disconnect */
120125
public eventDisconnect(url: string, request: IPutMetricsRequestData, sessionId: string): INullResponseData {
121126
return this.httpResponse.nullResponse();
122127
}

project/src/routers/static/MatchStaticRouter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export class MatchStaticRouter extends StaticRouter {
9696
new RouteAction(
9797
"/client/match/group/exit_from_menu",
9898
async (url: string, info: any, sessionID: string, output: string): Promise<INullResponseData> => {
99-
return this.matchCallbacks.exitToMenu(url, info, sessionID);
99+
return this.matchCallbacks.exitFromMenu(url, info, sessionID);
100100
},
101101
),
102102
new RouteAction(

0 commit comments

Comments
 (0)