Skip to main content
reference

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

NameTypeDescription
lhsprivmx.endpoint.thread.ThreadThe left-hand side `Thread` instance.
rhsprivmx.endpoint.thread.ThreadThe right-hand side `Thread` instance.

TypeDescription
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

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