Thread
Holds all available information about a Thread.
Fields
id
The unique identifier for the thread. This property returns the `threadId` as a `String`, which serves as the unique identifier for the thread.
public var id: String
Static Methods
==(::)
Compares two `Thread` instances for equality. This function compares multiple key properties of the two `Thread` instances, including `threadId`, `contextId`, `createDate`, `creator`, `lastModifier`, `lastModificationDate`, `messagesCount`, `lastMsgDate`, `publicMeta`, `privateMeta`, `users`, `managers`, `version`, and `statusCode`.
public static func == (
lhs: privmx.endpoint.thread.Thread,
rhs: privmx.endpoint.thread.Thread
) -> Bool
Name | Type | Description |
---|---|---|
lhs | privmx.endpoint.thread.Thread | The left-hand side `Thread` instance. |
rhs | privmx.endpoint.thread.Thread | The right-hand side `Thread` instance. |
Type | Description |
---|---|
Bool | `true` if all relevant fields of both threads are equal, otherwise `false`. |
Methods
hash(into:)
Generates a hash value for the `Thread` instance. This function combines several properties, including `threadId`, `lastModificationDate`, `lastMsgDate`, and `version` to generate a unique hash value for the thread.
public func hash(into hasher: inout Hasher) -> Void
Name | Type | Description |
---|---|---|
hasher | inout Hasher | The `Hasher` instance used to compute the hash value. |