package com.example.modifier.data

import com.example.modifier.enums.ReqState

data class AppState(
    val send: Boolean,
    val singleExecuted: Int,
    val singleSuccess: Int,
    val groupExecuted: Int,
    val groupSuccess: Int,
    val requestedNum: Int,
    val running: Boolean,
    val preparing: Boolean,
    val checkingConnection: Boolean,
    val suspended: Boolean,
    val reqState: ReqState,
    val storing: Boolean = false,
    val failure: Int = 0
) {

    val busy: Boolean
        get() = running || preparing || checkingConnection || storing || reqState != ReqState.NONE
}
