package Ġcom . gre im ul . simp len ot ification . server Ċ Ċ import Ġcom . gre im ul . simp len ot ification . Notification Data Ċ import Ġcom . gre im ul . simp len ot ification . id Data Ċ import Ġokhttp 3 . ResponseBody Ċ import Ġok io . Utf 8 Ċ import Ġorg . json . JSONObject Ċ import Ġretrofit 2 . Call Ċ import Ġretrofit 2 . http .* Ċ Ċ interface ĠRet rofit Interface Ġ{ ĊĠĠĠ Ġ@ Form Url Encoded ĊĠĠĠ Ġ@ POST (" insert . php ") ĊĠĠĠ Ġfun Ġpost Notification (@ Field Map Ġdata : HashMap < String , String >): ĠCall < id Data > ĊĊĠĠĠ Ġ@ GET (" give _ all _ notification . php ") ĊĠĠĠ Ġfun ĠgetAll Notification (): Call < List < Notification Data >> ĊĊĠĠĠ Ġ@ Form Url Encoded ĊĠĠĠ Ġ@ POST (" delete . php ") ĊĠĠĠ Ġfun Ġdelete Notification (@ Field (" id ") Ġid : Int ): Call < ResponseBody > ĊĊĠĠĠ Ġ@ Form Url Encoded ĊĠĠĠ Ġ@ POST (" give _ notification . php ") ĊĠĠĠ Ġfun Ġget Notification (@ Field (" id ") Ġid : Int ): Call < Notification Data > ĊĊĠĠĠ Ġ@ GET (" give _ last _ notification . php ") ĊĠĠĠ Ġfun ĠgetLast Notification (): Call < Notification Data > Ċ }