Skip to content

Instantly share code, notes, and snippets.

@catalinghita8
Last active August 10, 2020 17:24
Show Gist options
  • Select an option

  • Save catalinghita8/71f326fbf783eaf818576d460e3eabfc to your computer and use it in GitHub Desktop.

Select an option

Save catalinghita8/71f326fbf783eaf818576d460e3eabfc to your computer and use it in GitHub Desktop.
class DataViewModel(val repository: WeatherRepository)
class WeatherRepository(val localClient: LocalDataClient,
val inMemoryClient: InMemoryDataClient,
val remoteClient: RemoteDataClient)
class LocalDataClient(val localDatabase: LocalDatabase)
class InMemoryDataClient(val memoryCache: MemoryCache)
class RemoteDataClient(val retrofit: RetrofitClient)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment