|
@@ -27,7 +27,6 @@ import kotlinx.coroutines.async
|
|
class HomeVm(application: Application) : BaseViewModel(application) {
|
|
class HomeVm(application: Application) : BaseViewModel(application) {
|
|
|
|
|
|
var changeNameChangeFun:((data: ChangeNameData) -> Unit)? = null
|
|
var changeNameChangeFun:((data: ChangeNameData) -> Unit)? = null
|
|
- var bindAnchorFun:((data: BindAnchorData) -> Unit)? = null
|
|
|
|
var closeAccountFun:((data: CloseAccountData) -> Unit)? = null
|
|
var closeAccountFun:((data: CloseAccountData) -> Unit)? = null
|
|
|
|
|
|
val imGroupNewMsgListener = IMGroupNewMsgListener()
|
|
val imGroupNewMsgListener = IMGroupNewMsgListener()
|
|
@@ -46,14 +45,6 @@ class HomeVm(application: Application) : BaseViewModel(application) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- imGroupNewMsgListener.handleMsgType<CusNewMsgBean<BindAnchorData>>(
|
|
|
|
- bind_anchor
|
|
|
|
- ){
|
|
|
|
- it.data?.let {
|
|
|
|
- bindAnchorFun?.invoke(it)
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
imGroupNewMsgListener.handleMsgType<CusNewMsgBean<CloseAccountData>>(
|
|
imGroupNewMsgListener.handleMsgType<CusNewMsgBean<CloseAccountData>>(
|
|
close_account
|
|
close_account
|
|
){
|
|
){
|