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

commonMain.at.asitplus.wallet.lib.msg.IssueCredentialBody.kt Maven / Gradle / Ivy

package at.asitplus.wallet.lib.msg

import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

/**
 * From [ARIES RFC 0453](https://github.com/hyperledger/aries-rfcs/tree/main/features/0453-issue-credential-v2)
 */
@Serializable
data class IssueCredentialBody(
    @SerialName("comment")
    val comment: String,
    @SerialName("formats")
    val formats: Array,
) {
    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (other == null || this::class != other::class) return false

        other as IssueCredentialBody

        if (comment != other.comment) return false
        if (!formats.contentEquals(other.formats)) return false

        return true
    }

    override fun hashCode(): Int {
        var result = comment.hashCode()
        result = 31 * result + formats.contentHashCode()
        return result
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy