ErxLocalDataStore

public protocol ErxLocalDataStore

Interface for the local data store

ErxTask interfaces

Communication interfaces

  • List all communications for the given profile contained in the store

    Declaration

    Swift

    func listAllCommunications(
        for profile: ErxTask.Communication.Profile
    ) -> AnyPublisher<[ErxTask.Communication], LocalStoreError>

    Parameters

    profile

    Filters for the passed Profile type

    Return Value

    array of the fetched communications or error

  • Fetch the most recent timestamp of all Communications

    Declaration

    Swift

    func fetchLatestTimestampForCommunications() -> AnyPublisher<String?, LocalStoreError>
  • Creates or updates the passes sequence of ErxTaskCommunications

    Declaration

    Swift

    func save(communications: [ErxTask.Communication]) -> AnyPublisher<Bool, LocalStoreError>

    Parameters

    communications

    Array of communications that should be stored

    Return Value

    true if save operation was successful

  • Returns all unread communications for the given profile

    Declaration

    Swift

    func allUnreadCommunications(
        for profile: ErxTask.Communication.Profile
    ) -> AnyPublisher<[ErxTask.Communication], LocalStoreError>

    Parameters

    profile

    profile for which you want to have the count

MedicationDispense interfaces

ChargeItem interfaces