BadgeView

data class BadgeView(val name: String? = null, val issuer: Did, val imageUrl: Uri? = null, val badgeType: String, val recipient: Did, val signature: String? = null, val description: String? = null)

View of a badge record, with fields resolved for display. If the DID in issuer is not the current streamplace node, the signature field shall be required.

Parameters

name

Display name from the badge definition.

issuer

DID of the badge issuer.

imageUrl

Resolved image URL for the badge icon.

recipient

DID of the badge recipient.

signature

TODO: Cryptographic signature of the badge (of a place.stream.key).

description

Description from the badge definition.

Constructors

Link copied to clipboard
constructor(name: String? = null, issuer: Did, imageUrl: Uri? = null, badgeType: String, recipient: Did, signature: String? = null, description: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard

Description from the badge definition.

Link copied to clipboard

Resolved image URL for the badge icon.

Link copied to clipboard
val issuer: Did

DID of the badge issuer.

Link copied to clipboard
val name: String?

Display name from the badge definition.

Link copied to clipboard

DID of the badge recipient.

Link copied to clipboard

TODO: Cryptographic signature of the badge (of a place.stream.key).