Package-level declarations

Types

Link copied to clipboard
class AppSyncWorker @AssistedInject constructor(@Assisted appContext: Context, @Assisted workerParams: WorkerParameters, val syncListenerManager: SyncListenerManager, openSrpFhirEngine: FhirEngine, appTimeStampContext: AppTimeStampContext) : FhirSyncWorker
Link copied to clipboard
@Singleton
class AppTimeStampContext @Inject constructor(sharedPreference: SharedPreferencesHelper) : ResourceParamsBasedDownloadWorkManager.TimestampContext
Link copied to clipboard
class CustomSyncWorker @AssistedInject constructor(@Assisted appContext: Context, @Assisted workerParams: WorkerParameters, val configurationRegistry: ConfigurationRegistry, val dispatcherProvider: DispatcherProvider, val fhirResourceDataSource: FhirResourceDataSource) : CoroutineWorker
Link copied to clipboard
interface OnSyncListener

An interface the exposes a callback method onSync which accepts an application level FHIR CurrentSyncJobStatus.

Link copied to clipboard
class OpenSrpDownloadManager(resourceSearchParams: ResourceSearchParams, val context: ResourceParamsBasedDownloadWorkManager.TimestampContext) : DownloadWorkManager
Link copied to clipboard
data class ResourceTag(val type: String, var tag: Coding)
Link copied to clipboard
class SyncBroadcaster @Inject constructor(val configurationRegistry: ConfigurationRegistry, val fhirEngine: FhirEngine, val syncListenerManager: SyncListenerManager, val dispatcherProvider: DispatcherProvider, val workManager: WorkManager, val context: Context)

This class is used to trigger one time and periodic syncs. A new instance of this class is created each time because a new instance of ResourceParamsBasedDownloadWorkManager is needed everytime sync is triggered; this class SHOULD NOT be provided as a singleton. The SyncJobStatus events are sent to the registered OnSyncListener maintained by the SyncListenerManager

Link copied to clipboard
@Singleton
class SyncListenerManager @Inject constructor(val configService: ConfigService, val configurationRegistry: ConfigurationRegistry, val sharedPreferencesHelper: SharedPreferencesHelper, val context: Context, val dispatcherProvider: DefaultDispatcherProvider)

A singleton class that maintains a list of OnSyncListener that have been registered to listen to SyncJobStatus emitted to indicate sync progress.