package Ġcom . k re ait . slack . api . test . group . conversation Ċ Ċ import Ġcom . k re ait . slack . api . contract . jackson . group . con versations . Con versations Open Request Ċ import Ġcom . k re ait . slack . api . contract . jackson . group . con versations . Error Conversation Open Response Ċ import Ġcom . k re ait . slack . api . contract . jackson . group . con versations . Successful Conversation Open Response Ċ import Ġcom . k re ait . slack . api . group . Api Call Result Ċ import Ġcom . k re ait . slack . api . group . con versations . Con versations Method Group Ċ import Ġcom . k re ait . slack . api . group . con versations . Con versations Open Method Ċ import Ġcom . k re ait . slack . api . test . Mock Method Ċ Ċ /** Ċ Ġ* ĠTest able Ġimplementation Ġof Ġ[ Con versations Method Group . open ] Ċ Ġ*/ Ċ class ĠMock Con versations Open Method Ġ: ĠCon versations Open Method (), ĠMock Method < Successful Conversation Open Response , ĠError Conversation Open Response , ĠCon versations Open Request > Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġparams (): ĠCon versations Open Request Ġ= Ġparams ĊĊĠĠĠ Ġoverride Ġvar Ġsuccess Response : ĠSuccessful Conversation Open Response ? Ġ= Ġnull ĊĠĠĠ Ġoverride Ġvar Ġfailure Response : ĠError Conversation Open Response ? Ġ= Ġnull ĊĊĠĠĠ Ġoverride Ġfun Ġrequest (): ĠApi Call Result < Successful Conversation Open Response , ĠError Conversation Open 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 ) ĊĠĠĠ Ġ} Ċ } Ċ