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
Name | Type | Description |
---|---|---|
lhs | privmx.endpoint.thread.Message | The left-hand side `Message` instance. |
rhs | privmx.endpoint.thread.Message | The right-hand side `Message` instance. |
Type | Description |
---|---|
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
Name | Type | Description |
---|---|---|
hasher | inout Hasher | The `Hasher` instance used to compute the hash value. |