package Ġir . he yd ari i . music manager . framework . network Ċ Ċ import Ġretrofit 2 . http . GET Ċ import Ġretrofit 2 . http . Query Ċ Ċ private Ġconst Ġval ĠAPI _ KEY Ġ= Ġ" 2 9 8 6 2 3 9 b 2 9 3 7 2 2 5 2 8 8 a 4 7 3 b 6 8 a 7 7 0 f 5 8 " Ċ Ċ /** Ċ Ġ* ĠRet rofit Ġinterface Ġto Ġcall Ġthe Ġneeded Ġap is Ċ Ġ*/ Ċ interface ĠRet rofit Album s Interface Ġ{ ĊĊĠĠĠ Ġ@ GET (" ? method = artist . search & format = json ") ĊĠĠĠ Ġsuspend Ġfun Ġfind Artist ( ĊĠĠĠĠĠĠĠ Ġ@ Query (" artist ") Ġartist : ĠString , ĊĠĠĠĠĠĠĠ Ġ@ Query (" page ") Ġpage Number : ĠInt , ĊĠĠĠĠĠĠĠ Ġ@ Query (" api _ key ") ĠapiKey : ĠString Ġ= ĠAPI _ KEY ĊĠĠĠ Ġ): ĠArtist Response Model ĊĊĠĠĠ Ġ@ GET (" ? method = artist . get top albums & format = json ") ĊĠĠĠ Ġsuspend Ġfun Ġget Top Album sBy Artist ( ĊĠĠĠĠĠĠĠ Ġ@ Query (" artist ") Ġartist : ĠString , ĊĠĠĠĠĠĠĠ Ġ@ Query (" page ") Ġpage Number : ĠInt , ĊĠĠĠĠĠĠĠ Ġ@ Query (" api _ key ") ĠapiKey : ĠString Ġ= ĠAPI _ KEY ĊĠĠĠ Ġ): ĠArtist Top Album s Response Model ĊĊĠĠĠ Ġ@ GET (" ? method = album . get info & format = json ") ĊĠĠĠ Ġsuspend Ġfun Ġget Album Details ( ĊĠĠĠĠĠĠĠ Ġ@ Query (" artist ") Ġartist : ĠString , ĊĠĠĠĠĠĠĠ Ġ@ Query (" album ") Ġalbum Name : ĠString , ĊĠĠĠĠĠĠĠ Ġ@ Query (" api _ key ") ĠapiKey : ĠString Ġ= ĠAPI _ KEY ĊĠĠĠ Ġ): ĠAlbum Details Response Model Ċ } Ċ