ShipmentInfoDataStore
public protocol ShipmentInfoDataStore
Interface for saving, loading and deleting address
sourcery: StreamWrapped
-
Set the selectedShipmentInfoId. The selected values of
ShipmentInfoare published throughselectedShipmentInfoDeclaration
Swift
func set(selectedShipmentInfoId: UUID)Parameters
selectedShipmentInfoIdIdentifier of the
ShipmentInfoto be selected -
Returns the selected
ShipmentInfoif any has been selected. Returnsnilif nothing was selectedDeclaration
Swift
var selectedShipmentInfo: AnyPublisher<ShipmentInfo?, LocalStoreError> { get } -
Fetches a
ShipmentInfoby it’s identifierDeclaration
Swift
func fetchShipmentInfo(by identifier: UUID) -> AnyPublisher<ShipmentInfo?, LocalStoreError>Parameters
identifierIdentifier of the
ShipmentInfoto fetch -
List all
ShipmentInfos contained in the storeDeclaration
Swift
func listAllShipmentInfos() -> AnyPublisher<[ShipmentInfo], LocalStoreError> -
Creates or updates a sequence of
ShipmentInfointo the store. Updates if the identifier does already exist in store, otherwise creates a new instance.sourcery: SkipStreamWrapped
Declaration
Swift
func save(shipmentInfos: [ShipmentInfo]) -> AnyPublisher<[ShipmentInfo], LocalStoreError>Parameters
shipmentInfosArray of
ShipmentInfoto be saved -
Deletes a sequence of
ShipmentInfofrom the store with the related identifiersourcery: SkipStreamWrapped
Declaration
Swift
func delete(shipmentInfos: [ShipmentInfo]) -> AnyPublisher<[ShipmentInfo], LocalStoreError>Parameters
shipmentInfosArray of
ShipmentInfoto be deleted -
Updates a
ShipmentInfosourcery: SkipStreamWrapped
Declaration
Swift
func update( identifier: UUID, mutating: @escaping (inout ShipmentInfo) -> Void ) -> AnyPublisher<ShipmentInfo, LocalStoreError>Parameters
identifierIdentifier of the
ShipmentInfoto updatemutatingClosure with the actual
ShipmentInfoto be updated -
save(shipmentInfo:Extension method) Creates or updates a
ShipmentInfointo the store. Updates if the identifier does already exist in storesourcery: SkipStreamWrapped
Declaration
Swift
public func save(shipmentInfo: ShipmentInfo) -> AnyPublisher<ShipmentInfo?, LocalStoreError>Parameters
shipmentInfoInstance of
ShipmentInfoto be saved -
delete(shipmentInfo:Extension method) Deletes a
ShipmentInfointo from the store with the related identifiersourcery: SkipStreamWrapped
Declaration
Swift
public func delete(shipmentInfo: ShipmentInfo) -> AnyPublisher<ShipmentInfo?, LocalStoreError>Parameters
shipmentInfoInstance of
ShipmentInfoto be deleted
View on GitHub
ShipmentInfoDataStore Protocol Reference