From 3bf914f401944de7e4d1909b9be60634fe2a6f53 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 4 Mar 2020 02:48:47 +0700 Subject: [PATCH] Update readme --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ac7d5d6..2e66f16 100644 --- a/README.md +++ b/README.md @@ -33,14 +33,14 @@ class EnterSmsCodeViewModel( val inputSmsCode = inputControl() - val actionSendSmsCodeAgain = emptyAction() + val actionSendSmsCodeAgain = actionEmpty() val eventError = event() - val eventDone = emptyEvent() + val eventDone = eventEmpty() val eventShowSmsCode = event() init { - inputSmsCode.text + inputSmsCode.value .observable .debounce(250, TimeUnit.MILLISECONDS) .filter { it.length == SMS_CODE_LENGTH } @@ -126,7 +126,7 @@ isProgress.observe { value -> } Создание ```kotlin -val actionSendSmsCodeAgain = action() // or emptyAction() если тип Unit +val actionSendSmsCodeAgain = action() // or actionEmpty() если тип Unit ``` Из ViewModel ```kotlin @@ -144,7 +144,7 @@ btnSendSmsCode.setOnClickListener { actionSendSmsCodeAgain.call() } Создание ```kotlin -val eventDone = event() // or emptyEvent() если тип Unit +val eventDone = event() // or eventEmpty() если тип Unit ``` Из ViewModel ```kotlin