-
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.
get selected product in SelectedProduct view and show it
- Loading branch information
1 parent
1d54f7f
commit 081a3d2
Showing
15 changed files
with
57 additions
and
38 deletions.
There are no files selected for viewing
4 changes: 0 additions & 4 deletions
4
app/src/main/java/com/miguelrr/capsshop/domain/AddItemSCUseCase.kt
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
app/src/main/java/com/miguelrr/capsshop/domain/GetCapIdUseCase.kt
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
app/src/main/java/com/miguelrr/capsshop/domain/LogInUseCase.kt
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
app/src/main/java/com/miguelrr/capsshop/domain/LogOutUseCase.kt
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
app/src/main/java/com/miguelrr/capsshop/domain/RemoveItemSCUseCase.kt
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
app/src/main/java/com/miguelrr/capsshop/domain/SignUpUseCase.kt
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
app/src/main/java/com/miguelrr/capsshop/domain/UpdateItemSCUseCase.kt
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
app/src/main/java/com/miguelrr/capsshop/domain/usecases/AddItemSCUseCase.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package com.miguelrr.capsshop.domain.usecases | ||
|
||
class AddItemSCUseCase { | ||
} |
16 changes: 16 additions & 0 deletions
16
app/src/main/java/com/miguelrr/capsshop/domain/usecases/GetCapIdUseCase.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.miguelrr.capsshop.domain.usecases | ||
|
||
import com.miguelrr.capsshop.data.CapRepository | ||
import com.miguelrr.capsshop.data.database.entity.toDatabase | ||
import com.miguelrr.capsshop.domain.model.Cap | ||
import javax.inject.Inject | ||
|
||
class GetCapIdUseCase @Inject constructor( | ||
private val capRepository: CapRepository | ||
){ | ||
|
||
suspend operator fun invoke(id : Int) : Cap{ | ||
return capRepository.getCapByID(id) | ||
} | ||
|
||
} |
4 changes: 4 additions & 0 deletions
4
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package com.miguelrr.capsshop.domain.usecases | ||
|
||
class LogInUseCase { | ||
} |
4 changes: 4 additions & 0 deletions
4
app/src/main/java/com/miguelrr/capsshop/domain/usecases/LogOutUseCase.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package com.miguelrr.capsshop.domain.usecases | ||
|
||
class LogOutUseCase { | ||
} |
4 changes: 4 additions & 0 deletions
4
app/src/main/java/com/miguelrr/capsshop/domain/usecases/RemoveItemSCUseCase.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package com.miguelrr.capsshop.domain.usecases | ||
|
||
class RemoveItemSCUseCase { | ||
} |
4 changes: 4 additions & 0 deletions
4
app/src/main/java/com/miguelrr/capsshop/domain/usecases/SignUpUseCase.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package com.miguelrr.capsshop.domain.usecases | ||
|
||
class SignUpUseCase { | ||
} |
4 changes: 4 additions & 0 deletions
4
app/src/main/java/com/miguelrr/capsshop/domain/usecases/UpdateItemSCUseCase.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package com.miguelrr.capsshop.domain.usecases | ||
|
||
class UpdateItemSCUseCase { | ||
} |
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