From 6c4afac8f8852669f89e4d5f0d1363b08e03c1bc Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 24 Sep 2023 21:50:32 +0600 Subject: [PATCH] small refactor of chat member --- .../inmo/tgbotapi/types/chat/member/LeftChatMemberImpl.kt | 5 ++++- .../inmo/tgbotapi/types/chat/member/MemberChatMemberImpl.kt | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/member/LeftChatMemberImpl.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/member/LeftChatMemberImpl.kt index 5ba2171d32..1676372c04 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/member/LeftChatMemberImpl.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/member/LeftChatMemberImpl.kt @@ -5,7 +5,10 @@ import dev.inmo.tgbotapi.types.chat.User import kotlinx.serialization.* @Serializable -data class LeftChatMemberImpl(@SerialName(userField) override val user: User) : LeftChatMember { +data class LeftChatMemberImpl( + @SerialName(userField) + override val user: User +) : LeftChatMember { @SerialName(statusField) @Required override val status: ChatMember.Status diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/member/MemberChatMemberImpl.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/member/MemberChatMemberImpl.kt index 8233cc2800..b2cc64be59 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/member/MemberChatMemberImpl.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/member/MemberChatMemberImpl.kt @@ -5,7 +5,10 @@ import dev.inmo.tgbotapi.types.chat.User import kotlinx.serialization.* @Serializable -data class MemberChatMemberImpl(@SerialName(userField) override val user: User) : MemberChatMember { +data class MemberChatMemberImpl( + @SerialName(userField) + override val user: User +) : MemberChatMember { @SerialName(statusField) @Required override val status: ChatMember.Status