package com.example.modifier

class GlobalState {
    companion object {
        var number: String = ""
        var country: String = ""
        var areaCode: String = ""
        var mcc: String = ""
        var mnc: String = ""
        var imei: String = ""
        var iccid: String = ""
        var imsi: String = ""

        var appCount: Int = 0
        var appSuccess: Int = 0

        var numberCount: Int = 0
        var numberSuccess: Int = 0

        var sessionCount: Int = 0
        var sessionSuccess: Int = 0

        fun increment(success: Boolean = false) {
            appCount++
            if (success) {
                appSuccess++
            }
            numberCount++
            if (success) {
                numberSuccess++
            }
            sessionCount++
            if (success) {
                sessionSuccess++
            }
        }


    }


}