- France
- https://amine-bouabdallaoui.fr
- Joined on
2022-07-18
This does not seem to do anything. Is it needed ?
This should be coVerify(exactly = 3) { api.getItems(any(), 0, "Tag", 1, "search", null, 200) }
This will be called once.
This does not seem to do anything. Is it needed ?
Update remote should be changed to.
This should be changed to coVerify(exactly = 3) { api.getItems(any(), 0, "Tag", 1, "search", null, 200) }
tryToCacheItemsAndGetNewOnes
will only return 1
item as it only returns new items.
Returning null
isn't possible, so it should be an empty list.
Wouldn't it be better if SelfossApi.spouts() returned a List rather than a Map? It would simplify the logic and conform with other api functions.
This is the return format of the api.
This is a simple api call to fetch the artcile content. There is no need to put it inside the repository. It is only used here.
What does this change do ?