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

Constructors

new
RagfairCategoriesService(logger: ILogger, paymentHelper: PaymentHelper)

Properties

protected
logger: ILogger
protected
paymentHelper: PaymentHelper

Methods

getCategoriesFromOffers(
offers: IRagfairOffer[],
searchRequestData: ISearchRequestData,
fleaUnlocked: boolean,
): Record<string, number>

Get a dictionary of each item the play can see in their flea menu, filtered by what is available for them to buy