package Ġcom . h ony um . elev ator Man . activity . contract Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . support . v 4 . app . Fragment Ċ import Ġcom . han bang . net sdk . Log Ċ import Ġcom . h ony um . elev ator Man . R Ċ import Ġcom . h ony um . elev ator Man . adapter . Cont art Detail Adapter Ċ import Ġcom . h ony um . elev ator Man . base . Base Activity Wrap er Ċ import Ġcom . h ony um . elev ator Man . fragment . cont art .* Ċ import Ġcom . h ony um . elev ator Man . net . Contract Info Detail Request Ċ import Ġcom . h ony um . elev ator Man . net . Contract Info Detail Response Ċ import Ġcom . h ony um . elev ator Man . net . NewRequest Head Ċ import Ġcom . h ony um . elev ator Man . net . base . Net Constant Ċ import Ġcom . h ony um . elev ator Man . net . base . Net Task Ċ import Ġkotlinx . android . synt hetic . main . activity _ cont art _ detail .* Ċ Ċ class ĠContract Detail Activity Ġ: ĠBase Activity Wrap er () Ġ{ ĊĊĠĠĠ Ġvar Ġtabs : Array < String > Ġ= ĠarrayOf (" åŁºæľ¬ ä¿¡æģ¯ "," èģĶç³» äºº "," çĶµ æ¢ ¯ é¡¹çĽ® "," éĻĦ ä»¶ "," æĶ¶ ä»ĺ æ¬¾ ") ĊĠĠĠ Ġvar Ġfragments : Mutable List < Fragment > Ġ= ĠArrayList < Fragment >() ĊĠĠĠ Ġvar Ġcontract Info Fragment : Cont art Info Fragment Ġ= ĠCont art Info Fragment () ĊĠĠĠ Ġvar Ġcont art Contacts Fragment : Cont art Contacts Fragment Ġ= ĠCont art Contacts Fragment () ĊĠĠĠ Ġvar Ġcont art Project Fragment : Cont art Project Fragment Ġ= ĠCont art Project Fragment () ĊĠĠĠ Ġvar Ġcont art En closure Fragment : Cont art En closure Fragment Ġ= ĠCont art En closure Fragment () ĊĠĠĠ Ġvar Ġcont art Payment Fragment : Cont art Payment Fragment Ġ= ĠCont art Payment Fragment () ĊĊĠĠĠ Ġoverride Ġfun Ġget Title String (): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġ" åĲĪ åĲĮ è¯¦æĥħ " ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġinit View () Ġ{ ĊĠĠĠĠĠĠĠ Ġvar Ġbundle Ġ= Ġintent . extras ĊĠĠĠĠĠĠĠ Ġvar Ġcode : String Ġ= Ġbundle . get (" code "). toString () ĊĠĠĠĠĠĠĠ Ġrequest Contract De Tail ( code ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġget Layout ID (): ĠInt Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠR . layout . activity _ cont art _ detail ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġrequest Contract De Tail ( code : String ){ ĊĠĠĠĠĠĠĠ Ġvar Ġcontract Inf ode tail Request Ġ= ĠContract Info Detail Request () ĊĠĠĠĠĠĠĠ Ġvar Ġbody Ġ= ĠContract Info Detail Request (). Contract Info Body () ĊĠĠĠĠĠĠĠ Ġbody . id Ġ= Ġcode ĊĊĠĠĠĠĠĠĠ Ġcontract Inf ode tail Request . body Ġ= Ġbody ĊĠĠĠĠĠĠĠ Ġcontract Inf ode tail Request . head Ġ= ĠNew Request Head (). set accessToken ( config . token ). set userId ( config . userId ) ĊĊĠĠĠĠĠĠĠ Ġvar Ġserver Ġ= Ġconfig . server Ġ+ config . contract Url + Net Constant . GET _ CONTRACT _ INFO _ BY _ ID ĊĊĠĠĠĠĠĠĠ Ġvar Ġnet Task Ġ= Ġobject Ġ: ĠNet Task ( server , Ġcontract Inf ode tail Request ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġoverride Ġfun Ġon Response ( task : ĠNet Task ?, Ġresult : ĠString ?) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠLog . e (" contract _ result ", result +" ======== ==" ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġvar Ġresponse Ġ= ĠContract Info Detail Response . get Contr at Info Response ( result ) ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġbundle Ġ= ĠBundle () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġbundle . put Serializable (" response ", response ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ// Ġ Ġbundle . put Serializable (" contract ", response . body . contract ) ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġcontract Info Fragment . arguments Ġ= Ġbundle ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġcont art Contacts Fragment . arguments Ġ= Ġbundle ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġcont art En closure Fragment . arguments Ġ= Ġbundle ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġcont art Project Fragment . arguments Ġ= Ġbundle ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġcont art Payment Fragment . arguments Ġ= Ġbundle ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġfragments . add ( contract Info Fragment ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġfragments . add ( cont art Contacts Fragment ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġfragments . add ( cont art Project Fragment ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġfragments . add ( cont art En closure Fragment ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġfragments . add ( cont art Payment Fragment ) ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġvar Ġview Page Adapter : ĠCont art Detail Adapter Ġ= ĠCont art Detail Adapter ( support FragmentManager , tabs , fragments ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġview _ pager . adapter Ġ= Ġview Page Adapter ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġtab _ layout . setup With ViewPager ( view _ pager ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġadd Back Ground Task ( net Task ) ĊĠĠĠ Ġ} ĊĊ Ċ } Ċ