-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a70dcc7
commit c8d339f
Showing
3 changed files
with
67 additions
and
4 deletions.
There are no files selected for viewing
14 changes: 13 additions & 1 deletion
14
app/src/main/java/com/miguelrr/capsshop/domain/usecases/LogInUseCase.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,16 @@ | ||
package com.miguelrr.capsshop.domain.usecases | ||
|
||
class LogInUseCase { | ||
import com.miguelrr.capsshop.data.UserRepository | ||
import com.miguelrr.capsshop.domain.model.LoginUser | ||
import com.miguelrr.capsshop.domain.model.ResponseSignUp | ||
import com.miguelrr.capsshop.domain.model.User | ||
import javax.inject.Inject | ||
|
||
class LogInUseCase @Inject constructor( | ||
private val userRepository: UserRepository | ||
) { | ||
|
||
suspend operator fun invoke(loginUser: LoginUser) : User{ | ||
return userRepository.logIn(loginUser) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters