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
Name | Type | Description |
---|---|---|
lhs | privmx.endpoint.store.ServerFileInfo | The left-hand side `ServerFileInfo` instance. |
rhs | privmx.endpoint.store.ServerFileInfo | The right-hand side `ServerFileInfo` instance. |
Type | Description |
---|---|
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
Name | Type | Description |
---|---|---|
hasher | inout Hasher | The `Hasher` instance used to compute the hash value. |