Commit d4de5bcd authored by Vladislav Bogdashkin's avatar Vladislav Bogdashkin 🎣

.

parent 7bca8c2a
...@@ -2,7 +2,11 @@ package com.biganto.visual.roompark.di.koin ...@@ -2,7 +2,11 @@ package com.biganto.visual.roompark.di.koin
import com.biganto.visual.roompark.base.RoomParkApplication import com.biganto.visual.roompark.base.RoomParkApplication
import com.biganto.visual.roompark.base.RoomParkMainActivity import com.biganto.visual.roompark.base.RoomParkMainActivity
import com.biganto.visual.roompark.domain.contract.AuthContract
import com.biganto.visual.roompark.domain.model.AuthInfoModel
import com.biganto.visual.roompark.view_utils.snackbar.SnackBarProvider import com.biganto.visual.roompark.view_utils.snackbar.SnackBarProvider
import io.reactivex.rxjava3.core.Completable
import io.reactivex.rxjava3.core.Observable
import org.koin.android.ext.koin.androidContext import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLogger import org.koin.android.ext.koin.androidLogger
import org.koin.core.context.startKoin import org.koin.core.context.startKoin
...@@ -29,6 +33,19 @@ val appModule = module{ ...@@ -29,6 +33,19 @@ val appModule = module{
} }
val dataModule = module {
single<AuthContract>{ object :AuthContract{
override fun signIn(email: String, password: String): Observable<AuthInfoModel> {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
override fun signOut(): Completable {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}}
}
val scopesModule = module { val scopesModule = module {
scope(named<RoomParkMainActivity>()){ scope(named<RoomParkMainActivity>()){
scoped { SnackBarProvider(get()) } scoped { SnackBarProvider(get()) }
......
package com.biganto.visual.roompark.domain.use_case package com.biganto.visual.roompark.domain.use_case
import com.biganto.visual.roompark.domain.contract.AuthContract
/** /**
* Created by Vladislav Bogdashkin on 24.09.2019. * Created by Vladislav Bogdashkin on 24.09.2019.
*/ */
class AuthUseCase{ class AuthUseCase(
// val auth: AuthContract by currentScope.inject() val auth: AuthContract by currentScope.get<>
){
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment