Regular

sealed interface Regular : Gift

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Limited(val id: GiftId, val sticker: Sticker, val starCount: Int, val totalCount: Int, val remainingCount: Int, val upgradeStarCount: Int? = null, val publisherChat: PreviewChat? = null, val personalTotalCount: Int? = null, val personalRemainingCount: Int? = null, val isPremium: Boolean = false, val hasColors: Boolean = false, val background: GiftBackground? = null, val uniqueGiftVariantCount: Int? = null) : Gift.Regular

Represents a Gift for fields of limited gifts

Link copied to clipboard
data class Unlimited(val id: GiftId, val sticker: Sticker, val starCount: Int, val upgradeStarCount: Int? = null, val publisherChat: PreviewChat? = null, val personalTotalCount: Int? = null, val personalRemainingCount: Int? = null, val isPremium: Boolean = false, val hasColors: Boolean = false, val background: GiftBackground? = null, val uniqueGiftVariantCount: Int? = null) : Gift.Regular

Represents a Gift for fields of unlimited gifts

Properties

Link copied to clipboard
abstract val background: GiftBackground?
Link copied to clipboard
abstract val hasColors: Boolean
Link copied to clipboard
abstract override val id: GiftId
Link copied to clipboard
abstract val isPremium: Boolean
Link copied to clipboard
Link copied to clipboard
abstract val personalTotalCount: Int?
Link copied to clipboard
abstract val publisherChat: PreviewChat?
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?
Link copied to clipboard
Link copied to clipboard
abstract val upgradeStarCount: Int?