Interface GarmentInformationProvider

interface GarmentInformationProvider {
    getBrand?(reference: AssetReference): Awaitable<undefined | string>;
    getDetailLink(reference: AssetReference): Awaitable<undefined | string>;
    getName(reference: AssetReference): Awaitable<undefined | string>;
    getPrice(reference: AssetReference): Awaitable<undefined | {
        currency: string;
        price: number;
        strikePrice?: number;
    }>;
    getSizes?(id: ReferenceData): Awaitable<ItemSize[]>;
    isAvailable?(reference: AssetReference): Awaitable<boolean>;
    preLoad?(items: AssetReference[]): Awaitable<void>;
}

Implemented by

Methods

  • If this methods is defined, it can be used to determine if a garment should be used in the expirience. If this methods returns false, that garment is removed from the garment selection AND all outfits that reference this garment are also removed and not available!

    Parameters

    Returns Awaitable<boolean>