Skip to main content
Deno 2 is finally here 🎉️
Learn more
class InsuranceCallbacks
implements OnUpdate
import { InsuranceCallbacks } from "https://deno.land/x/sptaki@1.2.0/callbacks/InsuranceCallbacks.d.ts";

Constructors

new
InsuranceCallbacks(
insuranceController: InsuranceController,
insuranceService: InsuranceService,
httpResponse: HttpResponseUtil,
configServer: ConfigServer,
)

Properties

protected
configServer: ConfigServer
protected
httpResponse: HttpResponseUtil
protected
insuranceConfig: IInsuranceConfig
protected
insuranceController: InsuranceController
protected
insuranceService: InsuranceService

Methods

Handle client/insurance/items/list/cost

getRoute(): string
insure(
pmcData: IPmcData,
sessionID: string,
): IItemEventRouterResponse

Handle Insure event

onUpdate(secondsSinceLastRun: number): Promise<boolean>