PrivMX DOCS
API Reference/PrivMX Endpoint Swift Extra/Types

ServerFileInfo

Holds file's information created by server

Fields

id

String The unique identifier for the file. This property returns the fileId as a String, which serves as the unique identifier for the file.

Static Methods

==(::)

Compares two ServerFileInfo instances for equality. This function compares key properties of the two ServerFileInfo instances, including fileId, storeId, author, and createDate.

Params

lhs

privmx.endpoint.store.ServerFileInfo

The left-hand side ServerFileInfo instance.

rhs

privmx.endpoint.store.ServerFileInfo

The right-hand side ServerFileInfo instance.

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

Returns

Bool · true if all relevant fields of both file info instances are equal, otherwise false.

Methods

hash(into:)

Generates a hash value for the ServerFileInfo instance. This function combines the fileId and createDate properties to generate a unique hash value for the file info.

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.