Newer
Older
MonCalc / app / src / main / kotlin / jackall / moncalc / viewmodel / FruitAnalyzeItemViewModel.kt
package jackall.moncalc.viewmodel

import android.arch.lifecycle.ViewModel

/**
 * Created by matsumoto_k on 2017/11/05.
 */
class FruitAnalyzeItemViewModel(
        var fruitName: String = "",
        var grade0: String = "",
        var grade1: String = "",
        var grade2: String = "",
        var grade3: String = "",
        var grade4: String = "",
        var grade5: String = ""
) : ViewModel() {
    fun isEmpty() = grade0.isBlank() and grade1.isBlank() and grade2.isBlank() and grade3.isBlank() and grade4.isBlank() and grade5.isBlank()
}