Created
May 10, 2022 13:15
-
-
Save Raiden18/b039a472c8b9fd767f04d207b98c76ea to your computer and use it in GitHub Desktop.
Information Expert. Interactor And Model class compare
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
class AnotherInteractor( | |
private val cartInteractor: CartInteractor, | |
private val anotherRepository: AnotherRepository | |
){ | |
fun doSomething() { | |
val cart = cartInteractor.getCart() | |
anotherRepository.doSomething(cart.productsApproximatePrice) | |
// Rest of the code | |
} | |
} |
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
class AnotherInteractor( | |
private val cartInteractor: CartInteractor, | |
private val anotherRepository: AnotherRepository | |
){ | |
fun doSomething() { | |
val cart = cartInteractor.getCart() | |
val productsApproximatePrice = cartInteractor.getProductsApproximatePrice(cart) | |
anotherRepository.doSomething(productsApproximatePrice) | |
// rest of the code | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment