DLCardBrand

@Serializable
data class DLCardBrand(val identifier: String, val niceName: String, val images: List<DLBrandImage>, val patterns: List<@Serializable(with = PatternsSerializer::class) Any>, val excludePattern: String?, val validation: String?, val gaps: List<Int>, val lengths: List<Int>, val code: DLCardCode)

Constructors

Link copied to clipboard
constructor(identifier: String, niceName: String, images: List<DLBrandImage>, patterns: List<@Serializable(with = PatternsSerializer::class) Any>, excludePattern: String?, validation: String?, gaps: List<Int>, lengths: List<Int>, code: DLCardCode)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val gaps: List<Int>
Link copied to clipboard
@SerialName(value = "type")
val identifier: String
Link copied to clipboard
@Serializable(with = ImageListSerializer::class)
val images: List<DLBrandImage>
Link copied to clipboard
@SerialName(value = "length")
@Serializable(with = LengthsListSerializer::class)
val lengths: List<Int>
Link copied to clipboard
@SerialName(value = "niceType")
val niceName: String
Link copied to clipboard
val patterns: List<@Serializable(with = PatternsSerializer::class) Any>
Link copied to clipboard

Functions

Link copied to clipboard
fun cardImage(density: DLImageDensity, size: DLImageSize, background: Boolean): String?

Return image brand URL for an specific density and size. Otherwise will return null when there is no image for that combination of size, density and background.