Created
March 6, 2018 14:50
-
-
Save danielgoncharov/62cc50f9c41be675f1d046a5b9f8db1f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@UserScope class ReceiveMessageUseCase @Inject constructor(private val messagesLocalDataSource: ChatMessagesLocalDataSource){ | |
fun doMagic():Completable | |
} | |
class ComponentA @Inject constructor(private val receiveMessageUseCase: ReceiveMessageUseCase){ | |
fun doStuff():Completable= | |
receiveMessageUseCase.doMagic(); | |
} | |
class ComponentB @Inject constructor(private val receiveMessageUseCase: ReceiveMessageUseCase){ | |
fun doStuff():Completable= | |
receiveMessageUseCase.doMagic(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment