ProviderCatalog

@Serializable
data class ProviderCatalog(val name: String, val url: String, val canPaginate: Boolean, val image: String? = null, val providerId: String) : Catalog(source)

Represents a catalog used by providers.

This class extends the Catalog class, adding specific information about the provider that offers the catalog.

Parameters

name

The name of the catalog.

url

The URL for accessing the catalog.

canPaginate

Indicates whether the catalog supports pagination.

image

An optional image associated with the catalog (default is null).

providerId

The name of the provider offering this catalog.

Constructors

Link copied to clipboard
constructor(name: String, url: String, canPaginate: Boolean, image: String? = null, providerId: String)

Initializes a new instance of ProviderCatalog with the specified name, URL, pagination capability, and provider name.

Properties

Link copied to clipboard
open override val canPaginate: Boolean
Link copied to clipboard
open override val image: String? = null
Link copied to clipboard
open val mediaType: String

Represents the media type for the catalog. By default, this returns DEFAULT_CATALOG_MEDIA_TYPE, which is "all". Override this in subclasses to specify a different media type.

Link copied to clipboard
open override val name: String
Link copied to clipboard

The name of the provider that offers this catalog.

Link copied to clipboard
open override val url: String