Skip to content

Commit

Permalink
[Chore/#106] Response 타입 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yeoncheong committed Aug 25, 2023
1 parent c72c1cc commit 553696c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import timber.log.Timber

class LoginViewModel(private val loginRepositoryImpl: LoginRepositoryImpl) : ViewModel() {

private val _getTokenResult: MutableLiveData<LoginResponseDto.LoginData.TokenData> = MutableLiveData()
val getTokenResult: LiveData<LoginResponseDto.LoginData.TokenData>
private val _getTokenResult: MutableLiveData<LoginResponseDto.LoginData> = MutableLiveData()
val getTokenResult: LiveData<LoginResponseDto.LoginData>
get() = _getTokenResult

fun login(fcmToken: String) {
Expand All @@ -27,7 +27,7 @@ class LoginViewModel(private val loginRepositoryImpl: LoginRepositoryImpl) : Vie
)
).onSuccess { response ->
Timber.d("login 성공")
_getTokenResult.value = response.data.tokenDto
_getTokenResult.value = response.data
}.onFailure { error ->
Timber.e("login 실패 $error")
}
Expand Down

0 comments on commit 553696c

Please sign in to comment.