package com.mytatvarnsdk.utils

enum class DeviceStatus(val id: String, val description: String) {

  CONNECTED("CONNECTED", "CGM & Bluetooth connected (isBoundAndConnect())"),

  DISCONNECTED("DISCONNECTED", "CGM disconnected (isDisConnect())"),

  MOISTURE_DETECT("MOISTURE_DETECT", "Gets ErrorCode.ERROR_FLOODING_WATER"),

  WEAK_SIGNAL(
    "WEAK_SIGNAL",
    "Error: ERROR_CURRENT_SMALL, ERROR_NOISE, ERROR_SENSITIVITY_ATTENUATION"
  ),

  EXPIRED(
    "EXPIRED",
    "Managed from backend when countdownDays, countdownMin & countdownHours become 0"
  ),

  TRANSMITTER_DISCONNECT(
    "TRANSMITTER_DISCONNECT",
    "Device connected but out of range (isBoundButDisConnect()) - Figma page 8"
  ),

  BLUETOOTH_OFF("BLUETOOTH_OFF", "When Bluetooth is off"),

  TRANSMITTER_DISCONNECT_BOX(
    "TRANSMITTER_DISCONNECT_BOX",
    "When device is unbound (isUnBind) - Figma page 12"
  ),

  ERROR_COMMON("ERROR_COMMON", "Fallback for unknown error codes (Something went wrong)")

}
