Last active
April 11, 2018 05:23
-
-
Save dphans/1fef466d8733dc7175efb9c7ba337441 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
package com.dinophan.authapp.ui.activities | |
import android.view.View | |
import com.dinophan.authapp.R | |
import com.dinophan.authapp.bases.BaseActivity | |
import com.dinophan.authapp.databinding.ActivityMainBinding | |
import com.dinophan.authapp.models.UserModel | |
import com.dinophan.authapp.modules.mock.APIMock | |
import io.reactivex.Observable | |
import io.reactivex.android.schedulers.AndroidSchedulers | |
import io.reactivex.schedulers.Schedulers | |
class MainActivity : BaseActivity<ActivityMainBinding>(R.layout.activity_main) { | |
private val userData: UserModel = UserModel() | |
override fun onActivityCreated(dataBinder: ActivityMainBinding) { | |
dataBinder.presenter = Presenter() | |
} | |
@Suppress("UNUSED_PARAMETER") | |
inner class Presenter { | |
private var confirmationPassword: String = String() | |
fun onUsernameChanged(text: CharSequence, start: Int, before: Int, count: Int) { | |
[email protected] = text.toString() | |
[email protected]() | |
} | |
fun onPasswordChanged(text: CharSequence, start: Int, before: Int, count: Int) { | |
[email protected] = text.toString() | |
[email protected]() | |
} | |
fun onConfirmationPasswordChanged(text: CharSequence, start: Int, before: Int, count: Int) { | |
[email protected]() | |
} | |
fun onToggleRegisterationState(view: View) { | |
[email protected]() | |
} | |
fun onFormSubmit(view: View) { | |
} | |
private fun validates() { | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment