package Ġfr . vs ct . to ck . bot . connector . teams . messages Ċ Ċ import Ġcom . microsoft . bot . schema . models . Action Types . MESSAGE _ BACK Ċ import Ġcom . microsoft . bot . schema . models . Action Types . OPEN _ URL Ċ import Ġcom . microsoft . bot . schema . models . Card Action Ċ import Ġcom . microsoft . bot . schema . models . Card Image Ċ import Ġfr . vs ct . to ck . bot . connector . teams . teams Connector Type Ċ import Ġfr . vs ct . to ck . bot . engine . Bus Ċ import Ġfr . vs ct . to ck . bot . engine . I 1 8 n Translator Ċ Ċ fun Ġ< T Ġ: ĠBus < T >> ĠT . with Teams ( message Provider : Ġ() Ġ-> ĠTeams Bot Message ): ĠT Ġ{ ĊĠĠĠ Ġreturn Ġwith Message ( teams Connector Type , Ġmessage Provider ) Ċ } Ċ Ċ fun ĠI 1 8 n Translator . teams Message ( ĊĠĠĠ Ġtext : ĠCharSequence Ċ ): ĠTeams Bot Text Message Ġ= ĠTeams Bot Text Message ( translate ( text ). toString ()) Ċ Ċ fun ĠI 1 8 n Translator . teams Message With Button Card ( ĊĠĠĠ Ġurl Text : ĠCharSequence , ĊĠĠĠ Ġlinks : ĠList < Card Action > Ċ ): ĠTeams Card Action Ġ= ĠTeams Card Action ( translate ( url Text ). toString (), Ġlinks ) Ċ Ċ fun ĠI 1 8 n Translator . teams Hero Card ( ĊĠĠĠ Ġtitle : ĠCharSequence , ĊĠĠĠ Ġsubtitle : ĠCharSequence ? Ġ= Ġnull , ĊĠĠĠ Ġattachment Content : ĠCharSequence , ĊĠĠĠ Ġimages : ĠList < Card Image >? Ġ= Ġnull , ĊĠĠĠ Ġbuttons : ĠList < Card Action >? Ġ= Ġnull , ĊĠĠĠ Ġtap : ĠCard Action ? Ġ= Ġnull Ċ ): ĠTeams Hero Card Ġ= ĠTeams Hero Card ( ĊĠĠĠ Ġtranslate ( title ). toString (), ĊĠĠĠ Ġsubtitle ?. let Ġ{ Ġtranslate ( subtitle ). toString () Ġ}, ĊĠĠĠ Ġtranslate ( attachment Content ). toString (), ĊĠĠĠ Ġimages , ĊĠĠĠ Ġbuttons , ĊĠĠĠ Ġtap Ċ ) Ċ Ċ fun ĠI 1 8 n Translator . teams Carousel ( ĊĠĠĠ Ġcarousel Content : ĠList < Teams Bot Message > Ċ ): ĠTeams Carousel Ġ= ĠTeams Carousel ( carousel Content ) ĊĊ Ċ fun Ġcard Image ( url : ĠString ): ĠCard Image Ġ= ĠCard Image (). with Url ( url ) Ċ Ċ fun Ġ< T Ġ: ĠBus < T >> ĠT . nlp Card Action ( ĊĠĠĠ Ġtitle : ĠCharSequence Ċ ): ĠCard Action Ġ= ĊĠĠĠ Ġtranslate ( title ). toString (). let Ġ{ Ġt Ġ-> ĊĠĠĠĠĠĠĠ ĠCard Action (). with Title ( t ). with Type ( MESSAGE _ BACK ). with Display Text ( t ). with Text ( t ) ĊĠĠĠ Ġ} Ċ Ċ fun Ġ< T Ġ: ĠBus < T >> ĠT . url Card Action ( ĊĠĠĠ Ġtitle : ĠCharSequence , ĊĠĠĠ Ġurl : ĠString Ċ ): ĠCard Action Ġ= ĊĠĠĠ Ġtranslate ( title ). toString (). let Ġ{ Ġt Ġ-> ĊĠĠĠĠĠĠĠ ĠCard Action (). with Title ( t ). with Type ( OPEN _ URL ). with Text ( t ). with Value ( url ) ĊĠĠĠ Ġ} ĊĊ