android10 / android10/Android-CleanArchitecture

UseCase responsibilities

Aberta
#94 8 comentários 0 reações 0 responsáveis Ver no GitHub
discussion question
Linguagem predominante
Java
Estrelas
15.5k
Forks
3.3k
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

What can subclasses of UseCase do? What can't they do? In this project use cases are atomic tasks used to simply obtain data, but what about decision making, where does that belong?
Example 1: I have a collection of items and lazy loading. Is there one UseCase handling all pagination logic and calling necessary repository methods, or are there multiple UseCases and something (presenter?) orchestrating them?
Example 2: after executing a UseCase, based on its response we make a decision on what UseCase to call next. Again, where is this decision made?

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.