Character

@Serializable
data class Character(val alias: List<String> = emptyList(), val comicvineId: Long? = null, val creators: List<BaseResource> = emptyList(), val description: String? = null, val grandComicsDatabaseId: Long? = null, val id: Long, val image: String? = null, val modified: Instant, val name: String, val resourceUrl: String, val teams: List<BaseResource> = emptyList(), val universes: List<BaseResource> = emptyList())

A data model representing a character.

Constructors

Link copied to clipboard
constructor(alias: List<String> = emptyList(), comicvineId: Long? = null, creators: List<BaseResource> = emptyList(), description: String? = null, grandComicsDatabaseId: Long? = null, id: Long, image: String? = null, modified: Instant, name: String, resourceUrl: String, teams: List<BaseResource> = emptyList(), universes: List<BaseResource> = emptyList())

Properties

Link copied to clipboard
@Serializable(with = EmptyListSerializer::class)
val alias: List<String>

The aliases of the character.

Link copied to clipboard
val comicvineId: Long? = null

The Comic Vine ID of the character.

Link copied to clipboard

The creators of the character.

Link copied to clipboard
@Serializable(with = NullableStringSerializer::class)
val description: String? = null

The description of the character.

Link copied to clipboard

The Grand Comics Database ID of the character

Link copied to clipboard
val id: Long

The unique identifier of the resource.

Link copied to clipboard
@Serializable(with = NullableStringSerializer::class)
val image: String? = null

The image URL of the character.

Link copied to clipboard
val modified: Instant

The date and time when the resource was last modified.

Link copied to clipboard

The name of the resource.

Link copied to clipboard

The URL of the character resource.

Link copied to clipboard

The teams the character belongs to.

Link copied to clipboard

The universes the character is associated with.