package Ġcom . example . kotlin net Ċ Ċ import Ġandroidx . lifecycle .* Ċ import Ġcom . w gh c wc . ket rofit . net . set Api Ċ import Ġretrofit 2 . Call Ċ Ċ /** Ċ Ġ* Ġauthor ï¼ļ w gh c wc Ċ Ġ* ĠDATE : Ġ 2 0 - 1 1 - 1 4 Ġ 1 8 : 1 2 Ċ Ġ*/ ĊĊ Ċ fun Ġ< T > ĠLifecycle Owner . gen Api ( block : Ġ() Ġ-> ĠCall < General Response < T >> ): ĠGen Api Impl < T > Ġ{ ĊĠĠĠ Ġreturn Ġset Api ( Gen Api Impl ( block ())) Ġas ĠGen Api Impl < T > Ċ } Ċ Ċ fun Ġ< T > ĠLifecycle Owner . gen Api ( call : ĠCall < General Response < T >> ): ĠGen Api Impl < T > Ġ{ ĊĠĠĠ Ġreturn Ġset Api ( Gen Api Impl ( call )) Ġas ĠGen Api Impl < T > Ċ } ĊĊĊ