xyz.cssxsh.pixiv.fanbox.CreatorDetail.kt Maven / Gradle / Ivy
package xyz.cssxsh.pixiv.fanbox
import kotlinx.serialization.*
@Serializable
public data class CreatorDetail(
@SerialName("coverImageUrl")
val coverImageUrl: String?,
@SerialName("creatorId")
val creatorId: String,
@SerialName("description")
val description: String,
@SerialName("hasAdultContent")
val hasAdultContent: Boolean,
@SerialName("hasBoothShop")
val hasBoothShop: Boolean,
@SerialName("isAcceptingRequest")
val isAcceptingRequest: Boolean,
@SerialName("isFollowed")
val isFollowed: Boolean,
@SerialName("isStopped")
val isStopped: Boolean,
@SerialName("isSupported")
val isSupported: Boolean,
@SerialName("profileItems")
val profileItems: List,
@SerialName("profileLinks")
val profileLinks: List,
@SerialName("user")
val user: CreatorInfo
) {
@Serializable
public sealed class ProfileItem {
@SerialName("id")
public abstract val id: String
@Serializable
@SerialName("image")
public data class Image(
@SerialName("id")
override val id: String,
@SerialName("imageUrl")
val imageUrl: String,
@SerialName("thumbnailUrl")
val thumbnailUrl: String
) : ProfileItem()
@Serializable
@SerialName("video")
public data class Video(
@SerialName("id")
override val id: String,
@SerialName("serviceProvider")
val serviceProvider: String,
@SerialName("videoId")
val videoId: String
) : ProfileItem()
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy