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