Category

data class Category(val id: String?, val name: String?, val url: String?, val cityName: String? = null, val cityImageSmall: String? = null, val cityImageLarge: String? = null) : Parcelable

Represents a category in the Discovery API.

Holds category details such as ID, name, and URL.

Constructors

Link copied to clipboard
constructor(id: String?, name: String?, url: String?, cityName: String? = null, cityImageSmall: String? = null, cityImageLarge: String? = null)

Properties

Link copied to clipboard
val cityImageLarge: String? = null
Link copied to clipboard
val cityImageSmall: String? = null
Link copied to clipboard
val cityName: String? = null
Link copied to clipboard
val id: String?

The category's ID, if available.

Link copied to clipboard
val name: String?

The category's name, if available.

Link copied to clipboard
val url: String?

The category's URL, if available.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)