All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.bselzer.ktx.image.model.Image.kt Maven / Gradle / Ivy

There is a newer version: 6.5.0
Show newest version
package com.bselzer.ktx.image.model

import kotlinx.serialization.Serializable

@Serializable
data class Image(
    val url: String,
    val content: ByteArray
) {
    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (other == null || this::class != other::class) return false

        other as Image

        if (url != other.url) return false

        return true
    }

    override fun hashCode(): Int {
        return url.hashCode()
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy