Skip to content

Commit 6d23edc

Browse files
committed
Added the classes UniqueGiftModel, UniqueGiftSymbol, UniqueGiftBackdropColors, and UniqueGiftBackdrop to describe the properties of a unique gift.
1 parent 6efe3aa commit 6d23edc

File tree

4 files changed

+33
-0
lines changed

4 files changed

+33
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.pengrad.telegrambot.model.gift.unique
2+
3+
data class UniqueGiftBackdrop(
4+
@get:JvmName("name") val name: String,
5+
@get:JvmName("colors") val colors: UniqueGiftBackdropColors,
6+
@get:JvmName("rarityPerMille") val rarityPerMille: Int
7+
)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package com.pengrad.telegrambot.model.gift.unique
2+
3+
data class UniqueGiftBackdropColors(
4+
@get:JvmName("centerColor") val centerColor: Int,
5+
@get:JvmName("edgeColor") val edgeColor: Int,
6+
@get:JvmName("symbolColor") val symbolColor: Int,
7+
@get:JvmName("textColor") val textColor: Int
8+
)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.pengrad.telegrambot.model.gift.unique
2+
3+
import com.pengrad.telegrambot.model.Sticker
4+
5+
data class UniqueGiftModel(
6+
@get:JvmName("name") val name: String,
7+
@get:JvmName("sticker") val sticker: Sticker,
8+
@get:JvmName("rarityPerMille") val rarityPerMille: Int
9+
)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.pengrad.telegrambot.model.gift.unique
2+
3+
import com.pengrad.telegrambot.model.Sticker
4+
5+
data class UniqueGiftSymbol(
6+
@get:JvmName("name") val name: String,
7+
@get:JvmName("sticker") val sticker: Sticker,
8+
@get:JvmName("rarityPerMille") val rarityPerMille: Int
9+
)

0 commit comments

Comments
 (0)