Skip to content

Commit

Permalink
Merge pull request #50 from Infomaniak/add-upload-manager-injection
Browse files Browse the repository at this point in the history
Add UploadManager in SwissTransferInjection
  • Loading branch information
sirambd authored Oct 22, 2024
2 parents 799c6c4 + 9ceb6ac commit bb38bcc
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import com.infomaniak.multiplatform_swisstransfer.database.controllers.UploadCon
import com.infomaniak.multiplatform_swisstransfer.managers.AccountManager
import com.infomaniak.multiplatform_swisstransfer.managers.AppSettingsManager
import com.infomaniak.multiplatform_swisstransfer.managers.TransferManager
import com.infomaniak.multiplatform_swisstransfer.managers.UploadManager
import com.infomaniak.multiplatform_swisstransfer.network.ApiClientProvider
import com.infomaniak.multiplatform_swisstransfer.network.repositories.TransferRepository
import com.infomaniak.multiplatform_swisstransfer.network.repositories.UploadRepository
Expand All @@ -37,7 +38,10 @@ import com.infomaniak.multiplatform_swisstransfer.network.repositories.UploadRep
* This class serves as the main access point.
*
* @property appSettingsManager A manager used to orchestrate AppSettings operations.
* @property accountManager A manager used to orchestrate Accounts operations.
* @property uploadManager A manager used to orchestrate Uploads operations.
* @property transferManager A manager used to orchestrate transfer operations.
* @property sharedApiUrlCreator An utils to help use shared routes.
*/
class SwissTransferInjection {

Expand All @@ -60,6 +64,9 @@ class SwissTransferInjection {
/** A manager used to orchestrate Accounts operations. */
val accountManager by lazy { AccountManager(appSettingsController, uploadController, transferController, realmProvider) }

/** A manager used to orchestrate Uploads operations. */
val uploadManager by lazy { UploadManager(uploadController, uploadRepository) }

/** An utils to help use shared routes */
val sharedApiUrlCreator by lazy { SharedApiUrlCreator(transferController, uploadController) }
}

0 comments on commit bb38bcc

Please sign in to comment.