Provides information about the garments in the dressing room

interface GarmentProvider {
    addById?: ((id: ReferenceData) => void);
    getAddedAt?: ((id: ReferenceData) => Awaitable<undefined | Date>);
    getById(id: ReferenceData): Awaitable<undefined | AssetInfo>;
    getIds(): Awaitable<ReferenceData[]>;
    getName(id: ReferenceData): Awaitable<undefined | string>;
    getThumbnail(id: ReferenceData): Awaitable<undefined | string>;
    removeById(id: ReferenceData): Awaitable<void>;
}

Hierarchy

  • AssetProvider
    • GarmentProvider

Properties

addById?: ((id: ReferenceData) => void)

Callback to add a garments from a shared look into the current dressing room / garment provider.

Type declaration

    • (id): void
    • Parameters

      • id: ReferenceData

        Unique ID if the garment as used in your systems

      Returns void

getAddedAt?: ((id: ReferenceData) => Awaitable<undefined | Date>)

Return the date at which the garment was added to the MDRC.

Type declaration

    • (id): Awaitable<undefined | Date>
    • Parameters

      • id: ReferenceData

        Unique ID if the garment as used in your systems

      Returns Awaitable<undefined | Date>

      The date the garment as added

Methods