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.*
|
|
|
|
import kotlinx.serialization.internal.ArrayListSerializer
|
|
|
|
|
|
|
|
@Serializable
|
|
|
|
data class UserProfilePhotos (
|
|
|
|
@SerialName("total_count")
|
|
|
|
val count: Int,
|
|
|
|
@Serializable(UserProfilePhotosPhotosSerializer::class)
|
|
|
|
val photos: List<Photo>
|
|
|
|
)
|
|
|
|
|
2020-01-15 07:03:42 +00:00
|
|
|
internal object UserProfilePhotosPhotosSerializer : KSerializer<List<Photo>> by ArrayListSerializer(
|
2018-12-26 08:07:24 +00:00
|
|
|
PhotoSerializer
|
|
|
|
)
|