-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
301 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
app/src/main/java/com/owori/android/auth/ui/viewmodel/BirthDateViewModel.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,25 @@ | ||
package com.owori.android.auth.ui.viewmodel | ||
|
||
import androidx.lifecycle.LiveData | ||
import androidx.lifecycle.MutableLiveData | ||
import com.owori.android.common.SingleLiveEvent | ||
import com.owori.android.common.ui.viewmodel.BaseViewModel | ||
import javax.inject.Inject | ||
|
||
class BirthDateViewModel @Inject constructor() : BaseViewModel() { | ||
private val _btnNext: SingleLiveEvent<Unit> = SingleLiveEvent() | ||
val btnNext: LiveData<Unit> = _btnNext | ||
private val _btnBack: SingleLiveEvent<Unit> = SingleLiveEvent() | ||
val btnBack: LiveData<Unit> = _btnBack | ||
|
||
val _birthDate: MutableLiveData<String> = MutableLiveData("") | ||
val birthDate: LiveData<String> = _birthDate | ||
|
||
fun onClickCheckButton() { | ||
_btnNext.call() | ||
} | ||
|
||
fun onClickBackButton() { | ||
_btnBack.call() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters