Skip to main content
reference

Store

Holds all available information about a Store.

Fields

id

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

public var id: String

Static Methods

==(::)

Compares two `Store` instances for equality. This function compares multiple key properties of the two `Store` instances, including `storeId`, `contextId`, `createDate`, `creator`, `privateMeta`, `publicMeta`, `filesCount`, `lastFileDate`, `lastModificationDate`, `lastModifier`, `managers`, `users`, `version`, and `statusCode`.

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

NameTypeDescription
lhsprivmx.endpoint.store.StoreThe left-hand side `Store` instance.
rhsprivmx.endpoint.store.StoreThe right-hand side `Store` instance.

TypeDescription
Bool `true` if all relevant fields of both stores are equal, otherwise `false`.

Methods

hash(into:)

Generates a hash value for the `Store` instance. This function combines several properties, including `storeId`, `lastModificationDate`, and `version` to generate a unique hash value for the store.

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

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