Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 1.04 KB

File metadata and controls

62 lines (43 loc) · 1.04 KB

STRUCT

DeviceResponse

Contents

  • Properties
    • version
    • documents
    • documentErrors
    • status
  • Methods
    • init(version:documents:documentErrors:status:)
public struct DeviceResponse

Device retrieval mdoc response. It is CBOR encoded

In mdoc reader initialize from CBOR data received from holder (data exchange) In mdoc holder initialize from CBOR data received from server (registration)

let dr = DeviceResponse(data: bytes)

Properties

version

public let version: String

documents

public let documents: [Document]?

An array of all returned documents

documentErrors

public let documentErrors: [DocumentError]?

An array of all returned document errors

status

public let status: UInt64

Methods

init(version:documents:documentErrors:status:)

public init(version: String? = nil, documents: [Document]? = nil, documentErrors: [DocumentError]? = nil, status: UInt64)