mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-29 04:47:48 +00:00
20 lines
507 B
Kotlin
20 lines
507 B
Kotlin
|
package com.github.insanusmokrassar.TelegramBotAPI.types
|
||
|
|
||
|
import kotlinx.serialization.*
|
||
|
|
||
|
@Serializable
|
||
|
data class Venue(
|
||
|
@SerialName(locationField)
|
||
|
val location: Location,
|
||
|
@SerialName(titleField)
|
||
|
val title: String,
|
||
|
@SerialName(addressField)
|
||
|
val address: String,
|
||
|
@SerialName(foursquareIdField)
|
||
|
@Optional
|
||
|
val foursquareId: String? = null,
|
||
|
@SerialName(foursquareTypeField)
|
||
|
@Optional
|
||
|
val foursquareType: String? = null // TODO:: Rewrite with enum or interface
|
||
|
)
|