|
@@ -1,12 +1,11 @@
|
|
package com.fastest.pass.login.presentation.viewmodels
|
|
package com.fastest.pass.login.presentation.viewmodels
|
|
|
|
|
|
-import android.util.Log
|
|
|
|
import androidx.compose.runtime.State
|
|
import androidx.compose.runtime.State
|
|
import androidx.compose.runtime.mutableStateOf
|
|
import androidx.compose.runtime.mutableStateOf
|
|
import androidx.lifecycle.ViewModel
|
|
import androidx.lifecycle.ViewModel
|
|
import androidx.lifecycle.viewModelScope
|
|
import androidx.lifecycle.viewModelScope
|
|
-import com.fastest.pass.di.UIState
|
|
|
|
-import com.fastest.pass.di.WebResponse
|
|
|
|
|
|
+import com.fastest.pass.app.UIState
|
|
|
|
+import com.fastest.pass.app.WebResponse
|
|
import com.fastest.pass.login.data.model.LoginRequest
|
|
import com.fastest.pass.login.data.model.LoginRequest
|
|
import com.fastest.pass.login.data.model.LoginResponse
|
|
import com.fastest.pass.login.data.model.LoginResponse
|
|
import com.fastest.pass.login.domain.usecase.LoginUseCase
|
|
import com.fastest.pass.login.domain.usecase.LoginUseCase
|
|
@@ -15,7 +14,7 @@ import dagger.hilt.android.lifecycle.HiltViewModel
|
|
import kotlinx.coroutines.flow.MutableStateFlow
|
|
import kotlinx.coroutines.flow.MutableStateFlow
|
|
import kotlinx.coroutines.launch
|
|
import kotlinx.coroutines.launch
|
|
import javax.inject.Inject
|
|
import javax.inject.Inject
|
|
-import com.fastest.pass.di.Result
|
|
|
|
|
|
+import com.fastest.pass.app.Result
|
|
@HiltViewModel
|
|
@HiltViewModel
|
|
class LoginViewModel @Inject constructor(
|
|
class LoginViewModel @Inject constructor(
|
|
private val loginUseCase: LoginUseCase
|
|
private val loginUseCase: LoginUseCase
|