2018-12-26 08:07:24 +00:00
|
|
|
package com.github.insanusmokrassar.TelegramBotAPI.types
|
|
|
|
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.files.Photo
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.files.PhotoSerializer
|
|
|
|
import kotlinx.serialization.*
|
2020-03-22 07:37:01 +00:00
|
|
|
import kotlinx.serialization.builtins.ListSerializer
|
2018-12-26 08:07:24 +00:00
|
|
|
|
|
|
|
@Serializable
|
|
|
|
data class UserProfilePhotos (
|
|
|
|
@SerialName("total_count")
|
|
|
|
val count: Int,
|
|
|
|
@Serializable(UserProfilePhotosPhotosSerializer::class)
|
|
|
|
val photos: List<Photo>
|
|
|
|
)
|
|
|
|
|
2020-03-22 07:37:01 +00:00
|
|
|
internal object UserProfilePhotosPhotosSerializer : KSerializer<List<Photo>> by ListSerializer(
|
2018-12-26 08:07:24 +00:00
|
|
|
PhotoSerializer
|
|
|
|
)
|