package Ġstud ios . ea em enk k . over tracker . view model Ċ Ċ import Ġandroid . app . Application Ċ import Ġandroidx . lifecycle . Android ViewModel Ċ import Ġandroidx . lifecycle . Mutable LiveData Ċ import Ġstud ios . ea em enk k . over tracker . domain . Message Ċ import Ġstud ios . ea em enk k . over tracker . inter actor . Chat Interactor Ċ Ċ class ĠChat ViewModel ( app : ĠApplication ) Ġ: ĠAndroid ViewModel ( app ) Ġ{ ĊĠĠĠ Ġprivate Ġval Ġinter actor Ġ= ĠChat Interactor ( app . application Context ) ĊĊĠĠĠ Ġval Ġincoming Msg Ġ= ĠMutable LiveData < Message >() ĊĊĠĠĠ Ġfun ĠsendMessage To Bot ( message : ĠString ) Ġ{ ĊĠĠĠĠĠĠĠ Ġinter actor . sendMessage To Bot ( message ) Ġ{ Ġmsg Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġif ( msg Ġ!= Ġnull ) Ġincoming Msg . value Ġ= Ġmsg ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }