Gift

data class Gift(val giftID: String = "", val name: String = "", val desc: String = "", val iconURL: String = "", val resourceURL: String = "", val level: Long = 0, val coins: Long = 0, val extensionInfo: Map<String, String> = emptyMap())

Gift data model, containing complete attribute information of a single gift.

Constructors

Link copied to clipboard
constructor(giftID: String = "", name: String = "", desc: String = "", iconURL: String = "", resourceURL: String = "", level: Long = 0, coins: Long = 0, extensionInfo: Map<String, String> = emptyMap())

Properties

Link copied to clipboard
val coins: Long = 0

Gift price (coins)

Link copied to clipboard

Gift description

Link copied to clipboard

Gift extension information, customizable fields (such as effect type, gifting restrictions, etc.)

Link copied to clipboard

Gift ID

Link copied to clipboard

Network URL of the gift icon image, used to load gift thumbnails.

Link copied to clipboard
val level: Long = 0

Gift level, used to distinguish gift rarity or value tier.

Link copied to clipboard

Gift name

Link copied to clipboard

Network URL of the gift animation resource file, used to load gift display effects.