package de.softwareapp_hb.privateqrscanner.ui.screens

import com.google.mlkit.vision.barcode.common.Barcode

internal fun Int.toHumanType(): String = when (this) {
    Barcode.TYPE_CONTACT_INFO -> "Contact"
    Barcode.TYPE_URL -> "URL"
    Barcode.TYPE_WIFI -> "WiFi"
    Barcode.TYPE_PHONE -> "Phone"
    Barcode.TYPE_SMS -> "SMS"
    Barcode.TYPE_EMAIL -> "Email"
    Barcode.TYPE_CALENDAR_EVENT -> "Calendar"
    Barcode.TYPE_ISBN -> "ISBN"
    Barcode.TYPE_PRODUCT -> "Product"
    Barcode.TYPE_TEXT -> "Text"
    Barcode.TYPE_GEO -> "Geo"
    else -> "Unknown"
}
