jermainedilao
08/26/2019, 2:24 AMProduct
item. Now, that Product
must contain category
and subcategory
. Currently, the API only returns the guid
of the category and subcategory.
Now the question is. Should the mapping of getting the category
and subcategory
from the API and putting them inside the Product
class be inside the data
module? OR I can put it inside my GetProductUseCase
?
If I choose the latter. So my usecase would look something like this:
getProducts()
.zip(repo.getCategory(), repo.getSubCategory())
.flatMap {
product.category = category
product.subcategory = subcategory
}
What’s the best practice for this?rezenebe
08/29/2019, 3:18 PMsergey.trufanov
09/02/2019, 5:30 PMdata
, domain
, presentation
) is responsible for handling API errors, for example if I have API method /login
and it returns error Email is incorrect
where should I handle it? I guess in repository inside data
module/layer, but maybe I missed smth.kevin.cianfarini
09/03/2019, 8:28 PMCorotuineScope
job be descended from the job in a fragment (and maybe the fragment is descended from the activity)? I'm thinking something like this.Kevin Janvier Chinabalire
09/04/2019, 3:49 PMleodeleon
09/07/2019, 8:41 AMghedeon
09/09/2019, 2:02 PMSingleLiveData
? I remember they've created it and were discouraging its usage after.theopaintsil
09/15/2019, 3:07 PMtheopaintsil
09/15/2019, 3:08 PMMuhammad Ahmed
09/16/2019, 4:35 PMghedeon
09/17/2019, 2:55 PMUserData
, UserEntity
, UserDto
, UserApi
...? 🙂Sergio Crespo Toubes
09/20/2019, 10:52 PMursus
09/23/2019, 5:50 AMMohamed Ibrahim
09/24/2019, 8:32 AMghedeon
09/27/2019, 3:17 PMSetShowTutorial
, IsShowTutorial
, that lead to Repository
, that knows how to read/write flags from SP?ghedeon
09/30/2019, 1:26 PMDanil Novoselov
10/08/2019, 6:09 AMGeneralViewModel
, that contains another one (or two no matter) Specific1ViewModel
? Setting as field we can provide the Specific1ViewModel
to GeneralViewModel
Sam
10/08/2019, 8:28 PMJoan Colmenero
10/14/2019, 10:08 AMapp
core
core-testing
features
(inside different features as a modules)? I'm about to start a new project and I want to have a "guide".
Thank you guys 🙂ghedeon
10/17/2019, 2:39 PMEither/Try/Result
If you go b)
, since you can't use kotlin Result
type, do you bring Arrow for that? Do you create your custom Either/Try/Result
? How does it look like?ursus
10/19/2019, 4:31 PMCamilo
10/21/2019, 9:23 PMkoufa
10/25/2019, 10:00 AMID
and Name
. I am also storing a Place Entity with Room in SQLite. After that a user of the App can select a Place from a list and display some details about it. To do that I call Google Places API again to fetch Places Detail with the ID
of the Place selected. I have build the app around the clean architecture approach but I did not find yet a way to handle external ( Google Place) IDs. I don't want to put them in my domain model but I cannot figure out a way to skip that. How do you handle such cases?Paolo Rotolo
10/27/2019, 11:19 AMKhan
10/28/2019, 1:10 PMursus
11/06/2019, 6:06 PMursus
11/06/2019, 6:07 PMkoufa
11/13/2019, 10:34 PMursus
11/17/2019, 8:13 AMState(.. my vals, val parentState : ParentState)
? Im not a huge fan of this as concept of ParentState being exposed outside.. maybe flatten it via interface + by delegation?ahulyk
11/19/2019, 9:58 AM