Body

data class Body constructor(val goalCode: String? = null, val comment: String? = null, val willConfirm: Boolean? = false, val proofTypes: Array<ProofTypes>? = emptyArray())(source)

Represents a class that encapsulates the body of a message.

Constructors

Link copied to clipboard
constructor(goalCode: String? = null, comment: String? = null, willConfirm: Boolean? = false, proofTypes: Array<ProofTypes>? = emptyArray())

Properties

Link copied to clipboard
val comment: String? = null

The comment associated with the body.

Link copied to clipboard
@SerialName(value = "goal_code")
val goalCode: String? = null

The goal code associated with the body.

Link copied to clipboard
@SerialName(value = "proof_types")
val proofTypes: Array<ProofTypes>?

An array of proof types.

Link copied to clipboard
@SerialName(value = "will_confirm")
val willConfirm: Boolean? = false

A boolean indicating whether confirmation is required.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Checks if this Body object is equal to the specified other object.

Link copied to clipboard
open override fun hashCode(): Int

Calculates the hash code for the current object.