Add msising object

This commit is contained in:
Dev 2024-03-09 16:57:47 +00:00
parent 7e1a47bedc
commit 4ce4663fbe
3 changed files with 22 additions and 0 deletions

View File

@ -9,6 +9,7 @@ import { IAcceptGroupInviteRequest } from "@spt-aki/models/eft/match/IAcceptGrou
import { IAcceptGroupInviteResponse } from "@spt-aki/models/eft/match/IAcceptGroupInviteResponse";
import { ICancelGroupInviteRequest } from "@spt-aki/models/eft/match/ICancelGroupInviteRequest";
import { ICreateGroupRequestData } from "@spt-aki/models/eft/match/ICreateGroupRequestData";
import { IDeclineGroupInviteRequest } from "@spt-aki/models/eft/match/IDeclineGroupInviteRequest";
import { IEndOfflineRaidRequestData } from "@spt-aki/models/eft/match/IEndOfflineRaidRequestData";
import { IGetGroupStatusRequestData } from "@spt-aki/models/eft/match/IGetGroupStatusRequestData";
import { IGetGroupStatusResponse } from "@spt-aki/models/eft/match/IGetGroupStatusResponse";
@ -90,6 +91,17 @@ export class MatchCallbacks
return this.httpResponse.getBody(result);
}
/** Handle client/match/group/invite/decline */
// eslint-disable-next-line @typescript-eslint/no-unused-vars
public declineGroupInvite(
url: string,
info: IDeclineGroupInviteRequest,
sessionID: string,
): IGetBodyResponseData<any>
{
return null;
}
/** Handle client/match/group/invite/cancel */
// eslint-disable-next-line @typescript-eslint/no-unused-vars
public cancelGroupInvite(

View File

@ -0,0 +1,3 @@
export interface IDeclineGroupInviteRequest
{
}

View File

@ -94,6 +94,13 @@ export class MatchStaticRouter extends StaticRouter
return this.matchCallbacks.acceptGroupInvite(url, info, sessionID);
},
),
new RouteAction(
"/client/match/group/invite/decline",
(url: string, info: any, sessionID: string, output: string): any =>
{
return this.matchCallbacks.declineGroupInvite(url, info, sessionID);
},
),
new RouteAction(
"/client/match/group/invite/cancel",
(url: string, info: any, sessionID: string, output: string): any =>