DiscoveryImageResponse

data class DiscoveryImageResponse(val ratio: String, val url: String, val width: Int, val height: Int, val fallback: Boolean, val domainList: List<String>)

Represents an image response from the Discovery API.

Holds image details, such as URL, dimensions, and domains.

Constructors

Link copied to clipboard
constructor(ratio: String, url: String, width: Int, height: Int, fallback: Boolean, domainList: List<String>)

Properties

Link copied to clipboard
@SerializedName(value = "domains")
val domainList: List<String>

List of domains for the image.

Link copied to clipboard

Indicates if the image is a fallback.

Link copied to clipboard
val height: Int

The image height.

Link copied to clipboard

The image aspect ratio.

Link copied to clipboard
val url: String

The image URL.

Link copied to clipboard
val width: Int

The image width.

Functions

Link copied to clipboard