PrivMX DOCS
API Reference/PrivMX Endpoint Swift Extra/Types

privmx.endpoint.thread.Thread

Holds all available information about a Thread.

Fields

id

String The unique identifier for the thread. This property returns the threadId as a String, which serves as the unique identifier for the thread.

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.

Params

lhs

privmx.endpoint.thread.Thread

The left-hand side Thread instance.

rhs

privmx.endpoint.thread.Thread

The right-hand side Thread instance.

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

Returns

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.

Params

hasher

inout Hasher

The Hasher instance used to compute the hash value.

public func hash(into hasher: inout Hasher) -> Void

We use cookies on our website. We use them to ensure the proper functioning of the site and, if you agree, for purposes we set, such as analytics or marketing.

PrivMX Endpoint Swift v2.3

This package is not up to date with the core documentation. Some of the features you've seen described in other parts of the documentation might not be mentioned here. Those changes do not influence compatibility, however