Skip to main content
The Deno 2 Release Candidate is here
Learn more
class ProfileCallbacks
import { ProfileCallbacks } from "https://deno.land/x/sptaki@1.2.0/callbacks/ProfileCallbacks.d.ts";

Handle profile related client events

Constructors

new
ProfileCallbacks(
httpResponse: HttpResponseUtil,
timeUtil: TimeUtil,
profileController: ProfileController,
profileHelper: ProfileHelper,
)

Properties

protected
httpResponse: HttpResponseUtil
protected
profileController: ProfileController
protected
profileHelper: ProfileHelper
protected
timeUtil: TimeUtil

Methods

changeNickname(
url: string,
sessionID: string,
): IGetBodyResponseData<any>

Handle client/game/profile/nickname/change event Client allows player to adjust their profile name

changeVoice(
url: string,
sessionID: string,
): INullResponseData

Handle client/game/profile/voice/change event

Handle client/game/profile/create

getAllMiniProfiles(
url: string,
sessionID: string,
): string

Handle /launcher/profiles

getMiniProfile(
url: string,
sessionID: string,
): string

Handle launcher/profile/info

Handle client/profile/view Called when viewing another players profile

getProfileData(
url: string,
sessionID: string,
): IGetBodyResponseData<IPmcData[]>

Handle client/game/profile/list Get the complete player profile (scav + pmc character)

getProfileSettings(
url: string,
sessionId: string,
): IGetBodyResponseData<string>

Handle client/profile/settings

Handle client/profile/status Called when creating a character when choosing a character face/voice

getReservedNickname(
url: string,
sessionID: string,
): IGetBodyResponseData<string>

Handle client/game/profile/nickname/reserved

regenerateScav(
url: string,
sessionID: string,
): IGetBodyResponseData<IPmcData[]>

Handle client/game/profile/savage/regenerate Handle the creation of a scav profile for player Occurs post-raid and when profile first created immediately after character details are confirmed by player

Handle client/game/profile/search

validateNickname(
url: string,
sessionID: string,
): IGetBodyResponseData<any>

Handle client/game/profile/nickname/validate