Skip to main content
reference

Message

Holds information about the Message.

Fields

id

The unique identifier for the message. This property returns the `id` from the `info` property of the message.

public var id: String

Static Methods

==(::)

Compares two `Message` instances for equality. This function compares all relevant fields of the `Message` object, including `info`, `data`, `privateMeta`, `publicMeta`, and `authorPubKey`.

public static func == (
lhs: privmx.endpoint.thread.Message,
rhs: privmx.endpoint.thread.Message
) -> Bool

NameTypeDescription
lhsprivmx.endpoint.thread.MessageThe left-hand side `Message` instance.
rhsprivmx.endpoint.thread.MessageThe right-hand side `Message` instance.

TypeDescription
Bool `true` if all relevant fields of both messages are equal, otherwise `false`.

Methods

hash(into:)

Generates a hash value for the `Message` instance. This function combines the `info` property into the hash to uniquely identify the message.

public func hash(into hasher: inout Hasher) -> Void

NameTypeDescription
hasherinout HasherThe `Hasher` instance used to compute the hash value.