package Ġcom . wx z eng . sun ny weather . logic . network ĊĊ Ċ import Ġcom . wx z eng . sun ny weather . Sun ny Weather Application Ċ import Ġcom . wx z eng . sun ny weather . logic . model . Daily Response Ċ import Ġcom . wx z eng . sun ny weather . logic . model . Realtime Response Ċ import Ġretrofit 2 . Call Ċ import Ġretrofit 2 . http . GET Ċ import Ġretrofit 2 . http . Path Ċ Ċ /** Ċ Ġ* Ġ Ġ@ author : Ġwe ix ing z eng Ċ Ġ* Ġ Ġ@ e - mail : Ġ 3 3 0 4 4 6 9 6 2 @ qq . com Ċ Ġ* Ġ Ġ@ date Ġ 2 0 2 1 / 0 1 / 2 0 Ġ 3 : 0 4 ĠPM Ċ Ġ* Ġ Ġ@ desc : Ċ Ġ* Ġ Ġ@ version : Ċ Ġ*/ Ċ interface ĠWeather Service { ĊĊĠĠĠ Ġ@ GET (" v 2 . 5 /${ Sun ny Weather Application . TOKEN }/{ lng },{ lat }/ realtime . json ") ĊĠĠĠ Ġfun Ġget Realtime Weather (@ Path (" lng ") Ġlng : String ,@ Path (" lat ") Ġlat : String ): ĊĠĠĠĠĠĠĠĠĠĠĠ ĠCall < Realtime Response > ĊĊĠĠĠ Ġ@ GET (" v 2 . 5 /${ Sun ny Weather Application . TOKEN }/{ lng },{ lat }/ daily . json ") ĊĠĠĠ Ġfun Ġget Daily Weather (@ Path (" lng ") Ġlng : ĠString , Ġ@ Path (" lat ") Ġlat : ĠString ): ĠCall < Daily Response > Ċ Ċ }