1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-06-18 07:45:27 +00:00
tgbotapi/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/Contact.kt

20 lines
567 B
Kotlin
Raw Normal View History

2020-10-04 11:06:30 +00:00
package dev.inmo.tgbotapi.types
2018-12-26 08:07:24 +00:00
2022-05-01 16:13:40 +00:00
import dev.inmo.tgbotapi.abstracts.CommonContactData
2019-04-13 02:21:19 +00:00
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
2018-12-26 08:07:24 +00:00
@Serializable
data class Contact(
@SerialName(phoneNumberField)
2019-02-07 03:25:49 +00:00
override val phoneNumber: String,
2018-12-26 08:07:24 +00:00
@SerialName(firstNameField)
2019-02-07 03:25:49 +00:00
override val firstName: String,
2018-12-26 08:07:24 +00:00
@SerialName(lastNameField)
2019-02-07 03:25:49 +00:00
override val lastName: String? = null,
2018-12-26 08:07:24 +00:00
@SerialName(userIdField)
val userId: UserId? = null,
@SerialName(vcardField)
2019-02-07 03:25:49 +00:00
override val vcard: String? = null
) : CommonContactData