package Ġcom . w ings . kotlin weather . logic . network Ċ Ċ import Ġcom . w ings . kotlin weather . Weather App Ċ import Ġcom . w ings . kotlin weather . logic . model . Daily Response Ċ import Ġcom . w ings . kotlin weather . logic . model . Place Response Ċ import Ġcom . w ings . kotlin weather . logic . model . Realtime Response Ċ import Ġretrofit 2 . Call Ċ import Ġretrofit 2 . http . GET Ċ import Ġretrofit 2 . http . Path Ċ import Ġretrofit 2 . http . Query Ċ Ċ /** Ċ Ġ* Ġ@ author Ġ-> ĠW ings Ċ Ġ* Ġ@ date ĠĠ Ġ-> Ġ 2 0 2 0 / 8 / 1 7 Ċ Ġ* Ġ@ email Ġ Ġ-> Ġru any and ong ai @ gmail . com Ċ 7 2 9 3 6 8 1 7 3 @ qq . com Ċ Ġ* Ġ@ phone Ġ Ġ-> Ġ 1 8 9 8 3 7 9 0 1 4 6 Ċ Ġ* Ġ@ blog ĠĠ Ġ-> Ġhttps :// ru any and ong . github . io Ċ -> Ġhttps :// blog . cs dn . net / qq _ 3 4 6 8 1 5 8 0 Ċ Ġ*/ Ċ interface ĠWeather Service Ġ{ ĊĊĠĠĠ Ġ@ GET (" v 2 / place ? token =${ Weather App . TOKEN }& lang = zh _ CN ") ĊĠĠĠ Ġfun Ġsearch Places (@ Query (" query ") Ġquery : ĠString ): ĠCall < Place Response > ĊĊĊĠĠĠ Ġ@ GET (" v 2 . 5 /${ Weather App . TOKEN }/{ lng },{ lat }/ realtime . json ") ĊĠĠĠ Ġfun Ġget Realtime Weather ( ĊĠĠĠĠĠĠĠ Ġ@ Path (" lng ") Ġlng : ĠString , ĊĠĠĠĠĠĠĠ Ġ@ Path (" lat ") Ġlat : ĠString ĊĠĠĠ Ġ): ĠCall < Realtime Response > ĊĊĠĠĠ Ġ@ GET (" v 2 . 5 /${ Weather App . TOKEN }/{ lng },{ lat }/ daily . json ") ĊĠĠĠ Ġfun Ġget Daily Weather (@ Path (" lng ") Ġlng : ĠString , Ġ@ Path (" lat ") Ġlat : ĠString ): ĠCall < Daily Response > Ċ }