package de.trainingstagebuch.app.utils

import androidx.annotation.StringRes

object ValidationUtils {
    fun requireAllNotBlank(@StringRes messageResId: Int, vararg values: String): Int? {
        return if (values.any { it.isBlank() }) messageResId else null
    }

    fun requireEquals(expected: String, actual: String, @StringRes messageResId: Int): Int? {
        return if (expected == actual) null else messageResId
    }
}
