Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielgoncharov/62cc50f9c41be675f1d046a5b9f8db1f to your computer and use it in GitHub Desktop.
Save danielgoncharov/62cc50f9c41be675f1d046a5b9f8db1f to your computer and use it in GitHub Desktop.
@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