package Ġcom . w ome i you y uming . android . yu ere ad ac g . network Ċ Ċ import Ġretrofit 2 . Ret rofit Ċ import Ġretrofit 2 . converter . gson . Gson Converter Factory Ċ Ċ /** Ċ Ġ* ĠCreated Ġby ĠY ue Ġon Ġ 2 0 2 0 / 1 / 9 . Ċ Ġ*/ Ċ object ĠRet rofit Client Ġ{ ĊĊĠĠĠ Ġprivate Ġconst Ġval ĠBASE _ URL _ NE WS Ġ= Ġ" https :// ac g . 1 7 8 . com /" ĊĠĠĠ Ġprivate Ġconst Ġval ĠBASE _ URL _ AN IME Ġ= Ġ" https :// g itee . com / qw es z xc 9 1 6 0 /" ĊĠĠĠ Ġprivate Ġconst Ġval ĠBASE _ URL _ G ALL ERY Ġ= Ġ" https :// am ly u . com /" ĊĊĊĠĠĠ Ġprivate Ġval Ġnews Ret rofit Ġ= ĠRet rofit . Builder (). baseUrl ( BASE _ URL _ NE WS ). build () ĊĠĠĠ Ġprivate Ġval Ġan ime Ret rofit Ġ= ĠRet rofit . Builder (). baseUrl ( BASE _ URL _ AN IME ). add Converter Factory ( Gson Converter Factory . create ()). build () ĊĠĠĠ Ġprivate Ġval Ġgallery Ret rofit Ġ= ĠRet rofit . Builder (). baseUrl ( BASE _ URL _ G ALL ERY ). build () ĊĊĊĠĠĠ Ġfun Ġget News Services (): ĠNews Services Ġ= Ġnews Ret rofit . create ( News Services :: class . java ) ĊĠĠĠ Ġfun Ġget An ime Services (): ĠAn ime Services Ġ= Ġan ime Ret rofit . create ( An ime Services :: class . java ) ĊĠĠĠ Ġfun Ġget Gallery Services (): ĠGallery Services Ġ= Ġgallery Ret rofit . create ( Gallery Services :: class . java ) ĊĊ Ċ }