package Ġcom . k re ait . slack . api . test . group . conversation Ċ Ċ import Ġcom . k re ait . slack . api . contract . jackson . group . con versations . Conversation Archive Request Ċ import Ġcom . k re ait . slack . api . contract . jackson . group . con versations . Error Conversation Archive Response Ċ import Ġcom . k re ait . slack . api . contract . jackson . group . con versations . Successful Conversation Archive Response Ċ import Ġcom . k re ait . slack . api . group . Api Call Result Ċ import Ġcom . k re ait . slack . api . group . con versations . Con versations Archive Method Ċ import Ġcom . k re ait . slack . api . group . con versations . Con versations Method Group Ċ import Ġcom . k re ait . slack . api . test . Mock Method Ċ Ċ /** Ċ Ġ* ĠTest able Ġimplementation Ġof Ġ[ Con versations Method Group . archive ] Ċ Ġ*/ Ċ open Ġclass ĠMock Con versations Archive Method Ġ: ĠCon versations Archive Method (), ĠMock Method < Successful Conversation Archive Response , ĠError Conversation Archive Response , ĠCon versation Archive Request > Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġparams (): ĠCon versation Archive Request Ġ= Ġparams ĊĊĠĠĠ Ġoverride Ġvar Ġsuccess Response : ĠSuccessful Conversation Archive Response ? Ġ= Ġnull ĊĠĠĠ Ġoverride Ġvar Ġfailure Response : ĠError Conversation Archive Response ? Ġ= Ġnull ĊĊĠĠĠ Ġoverride Ġfun Ġrequest (): ĠApi Call Result < Successful Conversation Archive Response , ĠError Conversation Archive Response > Ġ{ ĊĊĠĠĠĠĠĠĠ Ġthis . success Response ?. let Ġ{ Ġthis . on Success ?. invoke ( it ) Ġ} ĊĠĠĠĠĠĠĠ Ġthis . failure Response ?. let Ġ{ Ġthis . on Failure ?. invoke ( it ) Ġ} ĊĊĠĠĠĠĠĠĠ Ġreturn ĠApi Call Result ( this . success Response , Ġthis . failure Response ) ĊĠĠĠ Ġ} Ċ } Ċ