From d40919f099658d8d176a52bca749a3538ea36f13 Mon Sep 17 00:00:00 2001 From: Bodya <75901693+bpavuk@users.noreply.github.com> Date: Sun, 13 Apr 2025 17:11:31 +0300 Subject: [PATCH] style: separated annotations and values with line breaks in GiftInfo.kt --- .../dev/inmo/tgbotapi/types/gifts/GiftInfo.kt | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/GiftInfo.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/GiftInfo.kt index 03f37347f4..b0c77d8d38 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/GiftInfo.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/gifts/GiftInfo.kt @@ -11,14 +11,22 @@ import kotlin.jvm.JvmName @Serializable data class GiftInfo private constructor( - @SerialName(giftField) val gift: Gift, - @SerialName(ownedGiftIdField) val ownedGiftId: GiftId? = null, - @SerialName(convertStarCountField) val convertStarCount: Int? = null, - @SerialName(prepaidUpgradeStarCountField) val prepaidUpgradeStarCount: Int? = null, - @SerialName(canBeUpgradedField) val canBeUpgraded: Boolean = false, - @SerialName(textField) val text: String? = null, - @SerialName(entitiesField) val entities: RawMessageEntities, - @SerialName(isPrivateField) val isPrivate: Boolean = false + @SerialName(giftField) + val gift: Gift, + @SerialName(ownedGiftIdField) + val ownedGiftId: GiftId? = null, + @SerialName(convertStarCountField) + val convertStarCount: Int? = null, + @SerialName(prepaidUpgradeStarCountField) + val prepaidUpgradeStarCount: Int? = null, + @SerialName(canBeUpgradedField) + val canBeUpgraded: Boolean = false, + @SerialName(textField) + val text: String? = null, + @SerialName(entitiesField) + val entities: RawMessageEntities, + @SerialName(isPrivateField) + val isPrivate: Boolean = false ) { companion object { @JvmName("PublicConstructor")