Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex committed Mar 3, 2020
1 parent ba59554 commit 3bf914f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ class EnterSmsCodeViewModel(

val inputSmsCode = inputControl()

val actionSendSmsCodeAgain = emptyAction()
val actionSendSmsCodeAgain = actionEmpty()

val eventError = event<Throwable>()
val eventDone = emptyEvent()
val eventDone = eventEmpty()
val eventShowSmsCode = event<String>()

init {
inputSmsCode.text
inputSmsCode.value
.observable
.debounce(250, TimeUnit.MILLISECONDS)
.filter { it.length == SMS_CODE_LENGTH }
Expand Down Expand Up @@ -126,7 +126,7 @@ isProgress.observe { value -> }

Создание
```kotlin
val actionSendSmsCodeAgain = action<Unit>() // or emptyAction() если тип Unit
val actionSendSmsCodeAgain = action<Unit>() // or actionEmpty() если тип Unit
```
Из ViewModel
```kotlin
Expand All @@ -144,7 +144,7 @@ btnSendSmsCode.setOnClickListener { actionSendSmsCodeAgain.call() }

Создание
```kotlin
val eventDone = event<Unit>() // or emptyEvent() если тип Unit
val eventDone = event<Unit>() // or eventEmpty() если тип Unit
```
Из ViewModel
```kotlin
Expand Down

0 comments on commit 3bf914f

Please sign in to comment.