Companion

object Companion

Properties

Link copied to clipboard

An error code for data not returned.

Link copied to clipboard

The status code for when the mdoc indicates an error during CBOR decoding that the data received is not valid CBOR.

Link copied to clipboard

The status code for when the mdoc indicates an error during CBOR validation, e.g. wrong CBOR structures.

Link copied to clipboard
const val STATUS_GENERAL_ERROR: Int = 10

The status code for when the mdoc returns an error without any given reason.

Link copied to clipboard
const val STATUS_OK: Int = 0

The status code for when documents are returned.

Functions

Link copied to clipboard
suspend fun fromDataItem(dataItem: DataItem): DeviceResponse

Parses CBOR compliant with the CDDL for DeviceResponse according to ISO 18013-5.