Gift

@Serializable(with = Gift.Companion::class)
sealed interface Gift

Inheritors

Types

Link copied to clipboard
object Companion : KSerializer<Gift>
Link copied to clipboard
@Serializable
data class Limited(val id: GiftId, val sticker: Sticker, val starCount: Int, val totalCount: Int, val remainingCount: Int) : Gift
Link copied to clipboard
@Serializable
data class Unlimited(val id: GiftId, val sticker: Sticker, val starCount: Int) : Gift

Properties

Link copied to clipboard
abstract val id: GiftId
Link copied to clipboard
abstract val remainingCount: Int?
Link copied to clipboard
abstract val starCount: Int
Link copied to clipboard
abstract val sticker: Sticker
Link copied to clipboard
abstract val totalCount: Int?