mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-09-16 05:40:32 +00:00
remove redundant GiveawayInfo sealed interfaces
This commit is contained in:
@@ -17,18 +17,9 @@ sealed interface GiveawayInfo {
|
||||
sealed interface OptionallyPremium : GiveawayInfo {
|
||||
val premiumMonths: Int?
|
||||
}
|
||||
@Serializable
|
||||
sealed interface Premium : OptionallyPremium {
|
||||
override val premiumMonths: Int
|
||||
}
|
||||
|
||||
@Serializable
|
||||
sealed interface OptionallyStars : GiveawayInfo {
|
||||
val prizeStarCount: Int?
|
||||
}
|
||||
|
||||
@Serializable
|
||||
sealed interface Stars : OptionallyStars {
|
||||
override val prizeStarCount: Int
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user