package Ġio . h nd rs . slack . api . test . group . users Ċ Ċ import Ġio . h nd rs . slack . api . contract . jackson . group . users . Con versations Request Ċ import Ġio . h nd rs . slack . api . contract . jackson . group . users . Error Con versations Response Ċ import Ġio . h nd rs . slack . api . contract . jackson . group . users . Successful Con versations Response Ċ import Ġio . h nd rs . slack . api . group . Api Call Result Ċ import Ġio . h nd rs . slack . api . group . users . User Con versations Method Ċ import Ġio . h nd rs . slack . api . group . users . Users Method Group Ċ import Ġio . h nd rs . slack . api . test . Mock Method Ċ Ċ /** Ċ Ġ* ĠTest able Ġimplementation Ġof Ġ[ Users Method Group . con versations ] Ċ Ġ*/ Ċ class ĠMock User Con versations Method Ġ: Ġio . h nd rs . slack . api . group . users . User Con versations Method (), ĊĠĠĠ ĠMock Method < Successful Con versations Response , ĠError Con versations Response , ĠCon versations Request > Ġ{ ĊĠĠĠĠĊĠĠĠ Ġoverride Ġvar Ġsuccess Response : ĠSuccessful Con versations Response ? Ġ= Ġnull ĊĠĠĠ Ġoverride Ġvar Ġfailure Response : ĠError Con versations Response ? Ġ= Ġnull ĊĊĠĠĠ Ġoverride Ġfun Ġrequest (): Ġio . h nd rs . slack . api . group . Api Call Result < Successful Con versations Response , ĠError Con versations Response > Ġ{ ĊĊĠĠĠĠĠĠĠ Ġthis . success Response ?. let Ġ{ Ġthis . on Success ?. invoke ( it ) Ġ} ĊĠĠĠĠĠĠĠ Ġthis . failure Response ?. let Ġ{ Ġthis . on Failure ?. invoke ( it ) Ġ} ĊĊĠĠĠĠĠĠĠ Ġreturn Ġio . h nd rs . slack . api . group . Api Call Result ( this . success Response , Ġthis . failure Response ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġparams (): ĠCon versations Request Ġ= Ġparams Ċ } Ċ