import androidx.annotation.ColorRes import androidx.annotation.DrawableRes import androidx.annotation.StringRes import com.ercnksgl.enumtestapp.R enum class MessageType( @StringRes val titleResId: Int, @DrawableRes val iconResId: Int, @ColorRes val cardColorResId: Int, @ColorRes val titleColorResId: Int ) { SUCCESS( titleResId = R.string.success_title, iconResId = R.drawable.check, cardColorResId = R.color.green_300, titleColorResId = R.color.green_100 ), ERROR( titleResId = R.string.error_title, iconResId = R.drawable.close, cardColorResId = R.color.red_300, titleColorResId = R.color.red_100 ), INFO( titleResId = R.string.info_title, iconResId = R.drawable.info, cardColorResId = R.color.yellow_300, titleColorResId = R.color.yellow_100 ) }