Skip to main content
reference

File

Holds information about the file.

Fields

id

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

public var id: 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`.

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

NameTypeDescription
lhsprivmx.endpoint.store.FileThe left-hand side `File` instance.
rhsprivmx.endpoint.store.FileThe right-hand side `File` instance.

TypeDescription
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.

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

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