package Ġcom . may ok un ad eni yi . instant weather . data . remote Ċ Ċ import Ġcom . may ok un ad eni yi . instant weather . data . model . Network Weather Ċ import Ġcom . may ok un ad eni yi . instant weather . data . model . Network Weather Forecast Response Ċ import Ġretrofit 2 . Response Ċ import Ġretrofit 2 . http . GET Ċ import Ġretrofit 2 . http . Query Ċ Ċ /** Ċ Ġ* ĠCreated Ġby ĠMay ok un ĠAd eni yi Ġon Ġ 2 3 / 0 5 / 2 0 2 0 . Ċ Ġ*/ Ċ interface ĠWeather ApiService Ġ{ ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠThis Ġfunction Ġgets Ġthe Ġ[ Network Weather ] Ġfor Ġthe Ġ[ location ] Ġthe ĊĠĠĠĠ Ġ* Ġuser Ġsearched Ġfor . ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġ@ GET ("/ data / 2 . 5 / weather ") ĊĠĠĠ Ġsuspend Ġfun Ġget Specific Weather ( ĊĠĠĠĠĠĠĠ Ġ@ Query (" q ") Ġlocation : ĠString , ĊĠĠĠĠĠĠĠ Ġ@ Query (" appid ") ĠapiKey : ĠString ĊĠĠĠ Ġ): ĠResponse < Network Weather > ĊĊĠĠĠ Ġ// This Ġfunction Ġgets Ġthe Ġweather Ġinformation Ġfor Ġthe Ġuser 's Ġlocation . ĊĠĠĠ Ġ@ GET ("/ data / 2 . 5 / weather ") ĊĠĠĠ Ġsuspend Ġfun ĠgetCurrent Weather ( ĊĠĠĠĠĠĠĠ Ġ@ Query (" lat ") Ġlatitude : ĠDouble , ĊĠĠĠĠĠĠĠ Ġ@ Query (" lon ") Ġlongitude : ĠDouble , ĊĠĠĠĠĠĠĠ Ġ@ Query (" appid ") ĠapiKey : ĠString ĊĠĠĠ Ġ): ĠResponse < Network Weather > ĊĊĠĠĠ Ġ// This Ġfunction Ġgets Ġthe Ġweather Ġforecast Ġinformation Ġfor Ġthe Ġuser 's Ġlocation . ĊĠĠĠ Ġ@ GET (" data / 2 . 5 / forecast ") ĊĠĠĠ Ġsuspend Ġfun Ġget Weather Forecast ( ĊĠĠĠĠĠĠĠ Ġ@ Query (" id ") Ġcity Id : ĠInt , ĊĠĠĠĠĠĠĠ Ġ@ Query (" appid ") ĠapiKey : ĠString ĊĠĠĠ Ġ): ĠResponse < Network Weather Forecast Response > Ċ }