Skip to main content
reference

ServerMessageInfo

Holds message's information created by server.

Fields

id

The unique identifier for the message. This property returns the `messageId` converted to a `String` to serve as the unique identifier.

public var id: String

Static Methods

==(::)

Compares two `ServerMessageInfo` instances for equality. This function compares the `messageId`, `threadId`, `createDate`, and `author` fields of the two instances.

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

NameTypeDescription
lhsprivmx.endpoint.thread.ServerMessageInfoThe left-hand side `ServerMessageInfo` instance.
rhsprivmx.endpoint.thread.ServerMessageInfoThe right-hand side `ServerMessageInfo` instance.

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

Methods

hash(into:)

Generates a hash value for the `ServerMessageInfo` instance. This function combines the `messageId` and `threadId` properties into the hash to uniquely identify the message info.

public func hash(into hasher: inout Hasher)

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