2023-10-26 11:44:17 +02:00
|
|
|
import { ClientLogController } from "@spt-aki/controllers/ClientLogController";
|
|
|
|
import { INullResponseData } from "@spt-aki/models/eft/httpResponse/INullResponseData";
|
|
|
|
import { IClientLogRequest } from "@spt-aki/models/spt/logging/IClientLogRequest";
|
|
|
|
import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil";
|
|
|
|
import { inject, injectable } from "tsyringe";
|
|
|
|
|
|
|
|
/** Handle client logging related events */
|
|
|
|
@injectable()
|
|
|
|
export class ClientLogCallbacks
|
|
|
|
{
|
|
|
|
constructor(
|
|
|
|
@inject("HttpResponseUtil") protected httpResponse: HttpResponseUtil,
|
2023-11-16 02:35:05 +01:00
|
|
|
@inject("ClientLogController") protected clientLogController: ClientLogController,
|
|
|
|
)
|
|
|
|
{}
|
2023-10-26 11:44:17 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Handle /singleplayer/log
|
|
|
|
*/
|
|
|
|
public clientLog(url: string, info: IClientLogRequest, sessionID: string): INullResponseData
|
|
|
|
{
|
|
|
|
this.clientLogController.clientLog(info);
|
|
|
|
return this.httpResponse.nullResponse();
|
|
|
|
}
|
2023-11-16 02:35:05 +01:00
|
|
|
}
|