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

Handle ragfair related callback events

Constructors

new
RagfairCallbacks(
httpResponse: HttpResponseUtil,
jsonUtil: JsonUtil,
ragfairServer: RagfairServer,
ragfairController: RagfairController,
ragfairTaxService: RagfairTaxService,
configServer: ConfigServer,
)

Properties

protected
configServer: ConfigServer
protected
httpResponse: HttpResponseUtil
protected
jsonUtil: JsonUtil
protected
ragfairConfig: IRagfairConfig
protected
ragfairController: RagfairController
protected
ragfairServer: RagfairServer
protected
ragfairTaxService: RagfairTaxService

Methods

Handle RagFairAddOffer event

Handle RagFairRenewOffer event

Handle client/ragfair/offer/findbyid

getFleaPrices(
url: string,
sessionID: string,
): IGetBodyResponseData<Record<string, number>>

Handle /client/items/prices Called when clicking an item to list on flea

Handle client/ragfair/itemMarketPrice

getRoute(): string
onLoad(): Promise<void>
onUpdate(timeSinceLastRun: number): Promise<boolean>

Handle RagFairRemoveOffer event

search(
url: string,
sessionID: string,
): IGetBodyResponseData<IGetOffersResult>

Handle client/ragfair/search Handle client/ragfair/find

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

Handle client/reports/ragfair/send