Skip to main content
reference

ServerFileInfo

Holds file's information created by server

Fields

id

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

public var id: String

Static Methods

==(::)

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

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

NameTypeDescription
lhsprivmx.endpoint.store.ServerFileInfoThe left-hand side `ServerFileInfo` instance.
rhsprivmx.endpoint.store.ServerFileInfoThe right-hand side `ServerFileInfo` instance.

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

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

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