71 lines
3.8 KiB
TypeScript
71 lines
3.8 KiB
TypeScript
import { ProfileController } from "../controllers/ProfileController";
|
|
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
|
import { IPmcData } from "../models/eft/common/IPmcData";
|
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
|
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
|
import { IGetMiniProfileRequestData } from "../models/eft/launcher/IGetMiniProfileRequestData";
|
|
import { GetProfileStatusResponseData } from "../models/eft/profile/GetProfileStatusResponseData";
|
|
import { IProfileChangeNicknameRequestData } from "../models/eft/profile/IProfileChangeNicknameRequestData";
|
|
import { IProfileChangeVoiceRequestData } from "../models/eft/profile/IProfileChangeVoiceRequestData";
|
|
import { IProfileCreateRequestData } from "../models/eft/profile/IProfileCreateRequestData";
|
|
import { ISearchFriendRequestData } from "../models/eft/profile/ISearchFriendRequestData";
|
|
import { ISearchFriendResponse } from "../models/eft/profile/ISearchFriendResponse";
|
|
import { IValidateNicknameRequestData } from "../models/eft/profile/IValidateNicknameRequestData";
|
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
|
import { TimeUtil } from "../utils/TimeUtil";
|
|
/** Handle profile related client events */
|
|
export declare class ProfileCallbacks {
|
|
protected httpResponse: HttpResponseUtil;
|
|
protected timeUtil: TimeUtil;
|
|
protected profileController: ProfileController;
|
|
constructor(httpResponse: HttpResponseUtil, timeUtil: TimeUtil, profileController: ProfileController);
|
|
createProfile(url: string, info: IProfileCreateRequestData, sessionID: string): IGetBodyResponseData<any>;
|
|
/**
|
|
* Get the complete player profile (scav + pmc character)
|
|
* @param url
|
|
* @param info Empty
|
|
* @param sessionID Session id
|
|
* @returns Profile object
|
|
*/
|
|
getProfileData(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IPmcData[]>;
|
|
/**
|
|
* 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
|
|
* @param url
|
|
* @param info empty
|
|
* @param sessionID Session id
|
|
* @returns Profile object
|
|
*/
|
|
regenerateScav(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IPmcData[]>;
|
|
/**
|
|
* Handle client/game/profile/voice/change event
|
|
* @param url
|
|
* @param info Change voice request object
|
|
* @param sessionID Session id
|
|
* @returns Client response
|
|
*/
|
|
changeVoice(url: string, info: IProfileChangeVoiceRequestData, sessionID: string): INullResponseData;
|
|
/**
|
|
* Handle client/game/profile/nickname/change event
|
|
* Client allows player to adjust their profile name
|
|
* @param url
|
|
* @param info Change nickname request object
|
|
* @param sessionID Session id
|
|
* @returns client response
|
|
*/
|
|
changeNickname(url: string, info: IProfileChangeNicknameRequestData, sessionID: string): IGetBodyResponseData<any>;
|
|
validateNickname(url: string, info: IValidateNicknameRequestData, sessionID: string): IGetBodyResponseData<any>;
|
|
getReservedNickname(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<string>;
|
|
/**
|
|
* Called when creating a character when choosing a character face/voice
|
|
* @param url
|
|
* @param info response (empty)
|
|
* @param sessionID
|
|
* @returns
|
|
*/
|
|
getProfileStatus(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<GetProfileStatusResponseData>;
|
|
searchFriend(url: string, info: ISearchFriendRequestData, sessionID: string): IGetBodyResponseData<ISearchFriendResponse[]>;
|
|
getMiniProfile(url: string, info: IGetMiniProfileRequestData, sessionID: string): string;
|
|
getAllMiniProfiles(url: string, info: any, sessionID: string): string;
|
|
}
|