diff --git a/docs/ArchitectureLearningJourney.md b/docs/ArchitectureLearningJourney.md index 7a6ab2d76..6b6fa4420 100644 --- a/docs/ArchitectureLearningJourney.md +++ b/docs/ArchitectureLearningJourney.md @@ -70,7 +70,7 @@ Here's what's happening in each step. The easiest way to find the associated cod 2 - The ForYouViewModel calls GetSaveableNewsResourcesUseCase to obtain a stream of news resources with their bookmarked/saved state. No items will be emitted into this stream until both the user and news repositories emit an item. While waiting, the feed state is set to Loading. + The ForYouViewModel calls GetUserNewsResourcesUseCase to obtain a stream of news resources with their bookmarked/saved state. No items will be emitted into this stream until both the user and news repositories emit an item. While waiting, the feed state is set to Loading. Search for usages of NewsFeedUiState.Loading @@ -142,9 +142,9 @@ Here's what's happening in each step. The easiest way to find the associated cod 11 - GetSaveableNewsResourcesUseCase combines the list of news resources with the user data to emit a list of SaveableNewsResources. + GetUserNewsResourcesUseCase combines the list of news resources with the user data to emit a list of UserNewsResources. - GetSaveableNewsResourcesUseCase.invoke + GetUserNewsResourcesUseCase.invoke @@ -254,7 +254,7 @@ The [domain layer](https://developer.android.com/topic/architecture/domain-layer These use cases are used to simplify and remove duplicate logic from ViewModels. They typically combine and transform data from repositories. -For example, `GetSaveableNewsResourcesUseCase` combines a stream (implemented using `Flow`) of `NewsResource`s from a `NewsRepository` with a stream of `UserData` objects from a `UserDataRepository` to create a stream of `SaveableNewsResource`s. This stream is used by various ViewModels to display news resources on screen with their bookmarked state. +For example, `GetUserNewsResourcesUseCase` combines a stream (implemented using `Flow`) of `NewsResource`s from a `NewsRepository` with a stream of `UserData` objects from a `UserDataRepository` to create a stream of `UserNewsResource`s. This stream is used by various ViewModels to display news resources on screen with their bookmarked state. Notably, the domain layer in Now in Android _does not_ (for now) contain any use cases for event handling. Events are handled by the UI layer calling methods on repositories directly.