Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (27 sloc) 1.09 KB
package com.github.johnnysc.tutor.presentation.add
import com.github.johnnysc.tutor.R
/**
* @author Asatryan on 18.06.19
*/
class AddNewPairPage {
val categoryTitle = R.id.categoryTitle
val addCategoryRadioButton = R.id.addCategoryRadioButton
val chooseExistingCategoryRadioButton = R.id.chooseExistingCategoryRadioButton
val addCategoryEditText = R.id.addCategoryEditText
val chooseCategorySpinner = R.id.chooseCategorySpinner
val sourceValueEditText = R.id.sourceValueEditText
val translationValueEditText = R.id.translationValueEditText
val saveButton = R.id.saveButton
val invalidDataErrorMessage = "Input Data is invalid! Check that out!"
val successfullyAddedMessage = "New pair was successfully saved!"
fun getAllVisibleViews() = listOf(
categoryTitle,
addCategoryRadioButton,
chooseExistingCategoryRadioButton,
addCategoryEditText,
sourceValueEditText,
translationValueEditText,
saveButton
)
fun getInputFields() = listOf(addCategoryEditText, sourceValueEditText, translationValueEditText)
}
You can’t perform that action at this time.