lambda?
fun connectChat(): Completable {
if (newFlow) {
return startFlow(ChatMessage.FlowRequest.QuoteFlowRequest)
} else {
getGuestInfoUseCase.execute(guestId)
.subscribeBy({
when(it){
is GetGuestInfoUseCase.UseCaseResult.Success -> {
return reconnect(it.guestInfo) // compilation err
}
is GetGuestInfoUseCase.UseCaseResult.Error -> {
return startFlow(ChatMessage.FlowRequest.QuoteFlowRequest) // compilation err
}
}
})
}
return startFlow(ChatMessage.FlowRequest.QuoteFlowRequest)
}
никак?
Обсуждают сегодня