BasicMessage

fmgp.did.comm.protocol.basicmessage2.BasicMessage
See theBasicMessage companion object
final case class BasicMessage(id: MsgID, to: Set[TO], from: Option[FROM], lang: Option[String], created_time: Option[UTCEpoch], content: String)

The Basic Message is sent by the sender to the recipient.

Note that the role is only specific to the creation of messages, and that both parties may play both roles.

{
"id": "123456780",
"type": "https://didcomm.org/basicmessage/2.0/message",
"lang": "en",
"created_time": 1547577721,
"body": {
"content": "Your hovercraft is full of eels."
}
}

Value parameters

lang

See [https://identity.foundation/didcomm-messaging/spec/#internationalization-i18n]

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def `type`: PIURI

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product