You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class AuthFormSmsCodeViewModel(
val eventsDispatcher: EventsDispatcher<EventsListener>,
val exceptionHandler: ExceptionHandler,
private val authRepository: AuthRepository,
private val strings: Strings
) : ViewModel() {
private var phone: String = ""
private var key: String = ""
private var authType: AuthType = AuthType.SIGN_UP
fun setInitialAuthData(phone: String, key: String, authType: AuthType) {
this.phone = phone
this.key = key
this.authType = authType
}
bad code
class AuthFormSmsCodeViewModel(
val eventsDispatcher: EventsDispatcher<EventsListener>,
val exceptionHandler: ExceptionHandler,
private val authRepository: AuthRepository,
private val strings: Strings,
private val phone: String,
private val key: String,
private val authType: AuthType
) : ViewModel() {
}
good code
The text was updated successfully, but these errors were encountered:
bad code
good code
The text was updated successfully, but these errors were encountered: