package Ġcom . computer . inu . sq k aka otal k Ċ Ċ import Ġandroid . support . v 7 . app . AppCompatActivity Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . support . v 7 . widget . Linear LayoutManager Ċ import Ġandroid . util . Log Ċ import Ġcom . computer . inu . sq k aka otal k . Adapter . Ban Friend List RecyclerView Adapter Ċ import Ġcom . computer . inu . sq k aka otal k . Adapter . Favorite Friend List RecyclerView Adapter Ċ import Ġcom . computer . inu . sq k aka otal k . Data . Favorite Friend Data Ċ import Ġcom . computer . inu . sq k aka otal k . get . Get Delete Friend Info Response Ċ import Ġcom . computer . inu . sq k aka otal k . get . Get Favorite Response Ċ import Ġcom . computer . inu . sq k aka otal k . network . Application Controller Ċ import Ġcom . computer . inu . sq k aka otal k . network . Sq Network Service Ċ import Ġkotlinx . android . synt hetic . main . activity _ ban _ friend .* Ċ import Ġkotlinx . android . synt hetic . main . activity _ friend _ list _ fragment .* Ċ import Ġorg . jetbrains . ank o . ctx Ċ import Ġorg . jetbrains . ank o . support . v 4 . ctx Ċ import Ġorg . jetbrains . ank o . support . v 4 . toast Ċ import Ġorg . jetbrains . ank o . toast Ċ import Ġretrofit 2 . Call Ċ import Ġretrofit 2 . Callback Ċ import Ġretrofit 2 . Response Ċ Ċ class ĠB an Friend Activity Ġ: ĠAppCompatActivity () Ġ{ ĊĠĠĠ Ġval ĠS q network Service : ĠS q Network Service Ġby Ġlazy Ġ{ ĊĠĠĠĠĠĠĠ ĠApplication Controller . instance . Sq network Service ĊĠĠĠ Ġ} ĊĠĠĠ Ġval ĠF avorite Friend Data Ġ: ĠArrayList < Favorite Friend Data > Ġby Ġlazy Ġ{ ĊĠĠĠĠĠĠĠ ĠArrayList < Favorite Friend Data >() ĊĠĠĠ Ġ} ĊĠĠĠ Ġlateinit Ġvar ĠB an Friend List RecyclerView Adapter : ĠB an Friend List RecyclerView Adapter ĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ ban _ friend ) ĊĠĠĠĠĠĠĠ Ġget Ban Friend List post () ĊĠĠĠ Ġ} ĊĠĠĠ Ġfun Ġget Ban Friend List post () Ġ{ ĊĠĠĠĠĠĠĠ Ġvar Ġget Ban Friend ListResponse Ġ: ĠCall < Get Delete Friend Info Response > Ġ= ĠS q network Service . get Delete Friend Info Response (" application / json ", Shared Preference Controller . get SQ Authorization ( ctx )) ĊĠĠĠĠĠĠĠ Ġget Ban Friend ListResponse . enqueue ( object Ġ: ĠCallback < Get Delete Friend Info Response > Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġoverride Ġfun Ġon Response ( call : ĠCall < Get Delete Friend Info Response > ?, Ġresponse : ĠResponse < Get Delete Friend Info Response > ?) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠLog . v (" TAG ", Ġ" ì°¨ ëĭ¨ ì¹ ľ êµ¬ ëª© ë¡Ŀ Ġë¶Ī ëŁ¬ ìĺ¤ ê¸° ") ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġif Ġ( response !!. is Successful ) Ġ{ ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠF avorite Friend Data . clear () ĊĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġ ĠF avorite Friend DataList Ġ= Ġresponse . body () !!. result !! ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġfor Ġ( i Ġin Ġ 0 .. Favorite Friend DataList . size - 1 ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠF avorite Friend Data . add ( Favorite Friend Data ( Favorite Friend DataList [ i ]. Email , Favorite Friend DataList [ i ]. Name , Favorite Friend DataList [ i ]. Prof _ img , Favorite Friend DataList [ i ]. Back _ img , Favorite Friend DataList [ i ]. Status )) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠB an Friend List RecyclerView Adapter = ĠB an Friend List RecyclerView Adapter ( this @ Ban Friend Activity , ĠF avorite Friend Data ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġrv _ ban friend . adapter Ġ= ĠB an Friend List RecyclerView Adapter ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġrv _ ban friend . layout Manager Ġ= ĠLinearLayoutManager ( this @ Ban Friend Activity ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} else Ġ{ ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġoverride Ġfun Ġon Failure ( call : ĠCall < Get Delete Friend Info Response > ?, Ġt : ĠThrowable ?) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠLog . v (" TAG ", Ġ" í Ĩµ ìĭł Ġìĭ¤ íĮ ¨ Ġ= Ġ" Ġ+ Ġt . toString ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġtoast (" í Ĩµ ìĭł ìĭ¤ íĮ ¨ ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ}) ĊĠĠĠ Ġ} Ċ } Ċ