Last active
August 10, 2020 17:25
-
-
Save catalinghita8/7999aaf30350f983f248243e55eb6cdc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class WeatherListFragment: Fragment() { | |
| fun onCreate() { | |
| val repo = WeatherRepository(LocalDataClient(LocalDataBase()), | |
| InMemoryDataClient(MemoryCache()), | |
| RemoteDataClient(RetrofitCLient())) | |
| val vm = DataViewModel(repo) | |
| } | |
| } | |
| class WeatherItemDetailsFragment: Fragment() { | |
| fun onCreate() { | |
| val repo = WeatherRepository(LocalDataClient(LocalDataBase()), | |
| InMemoryDataClient(MemoryCache()), | |
| RemoteDataClient(RetrofitCLient())) | |
| val vm = DataViewModel(repo) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment