FavoriteState

data class FavoriteState(val type: String, val name: String, val artistID: String, val venueID: String, val isFavorite: Boolean, val isError: Boolean)

Represents the state of a favorite action in the Artist Details Page (ADP) or Venue Details Page (VDP).

Parameters

type

The type of the favorited item (e.g., artist or venue).

name

The name of the favorited item.

artistID

The unique identifier for the artist, if applicable.

venueID

The unique identifier for the venue, if applicable.

isFavorite

Indicates whether the item is marked as a favorite.

isError

Indicates whether an error occurred during the favorite action.

Constructors

Link copied to clipboard
constructor(type: String, name: String, artistID: String, venueID: String, isFavorite: Boolean, isError: Boolean)

Properties

Link copied to clipboard
@SerializedName(value = "artistId")
val artistID: String
Link copied to clipboard
@SerializedName(value = "isError")
val isError: Boolean
Link copied to clipboard
@SerializedName(value = "isFavorited")
val isFavorite: Boolean
Link copied to clipboard
@SerializedName(value = "name")
val name: String
Link copied to clipboard
@SerializedName(value = "type")
val type: String
Link copied to clipboard
@SerializedName(value = "venueId")
val venueID: String