Created
June 18, 2018 11:11
-
-
Save mohak1712/6690a032a2681428787abd5743d93b9c 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
@Singleton | |
public class DataManager { | |
private BaseApiManager mBaseApiManager; | |
@Inject | |
public DataManager(BaseApiManager baseApiManager) { | |
mBaseApiManager = baseApiManager; | |
} | |
public Single<Weather> getWeatherApi(String loc, int day) { | |
return mBaseApiManager.getWeatherApi().geWeather(loc, day); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment