PrivMX DOCS
API Reference/PrivMX Endpoint Swift Extra/Types

File

Holds information about the file.

Fields

id

String The unique identifier for the file. This property returns the fileId from the info property of the file, converted to a String.

Static Methods

==(::)

Compares two File instances for equality. This function compares several key properties of the two File instances, including info, privateMeta, publicMeta, authorPubKey, size, and statusCode.

Params

lhs

privmx.endpoint.store.File

The left-hand side File instance.

rhs

privmx.endpoint.store.File

The right-hand side File instance.

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

Returns

Bool · true if all relevant fields of both files are equal, otherwise false.

Methods

hash(into:)

Generates a hash value for the File instance. This function combines the info property into the hash to uniquely identify the file.

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.