diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/treatments/fragments/TreatmentsUserEntryFragment.kt b/app/src/main/java/info/nightscout/androidaps/plugins/treatments/fragments/TreatmentsUserEntryFragment.kt index 998be127d0..86aa5e45ab 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/treatments/fragments/TreatmentsUserEntryFragment.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/treatments/fragments/TreatmentsUserEntryFragment.kt @@ -13,6 +13,7 @@ import info.nightscout.androidaps.database.entities.UserEntry import info.nightscout.androidaps.databinding.TreatmentsUserEntryFragmentBinding import info.nightscout.androidaps.databinding.TreatmentsUserEntryItemBinding import info.nightscout.androidaps.utils.DateUtil +import info.nightscout.androidaps.utils.extensions.stringId import info.nightscout.androidaps.utils.resources.ResourceHelper import info.nightscout.androidaps.utils.rx.AapsSchedulers import io.reactivex.disposables.CompositeDisposable @@ -65,7 +66,7 @@ class TreatmentsUserEntryFragment : DaggerFragment() { override fun onBindViewHolder(holder: UserEntryViewHolder, position: Int) { val current = entries[position] holder.binding.date.text = dateUtil.dateAndTimeAndSecondsString(current.timestamp) - holder.binding.action.text = resourceHelper.gs(current.action.stringId) + holder.binding.action.text = resourceHelper.gs(current.action.stringId()) if (current.s != "") holder.binding.s.text = current.s else holder.binding.s.visibility = View.GONE if (current.d1 != 0.0) holder.binding.d1.text = current.d1.toString() else holder.binding.d1.visibility = View.GONE if (current.d2 != 0.0) holder.binding.d2.text = current.d2.toString() else holder.binding.d2.visibility = View.GONE diff --git a/core/src/main/java/info/nightscout/androidaps/utils/extensions/UserEntryStrings.kt b/core/src/main/java/info/nightscout/androidaps/utils/extensions/UserEntryStrings.kt new file mode 100644 index 0000000000..7d53305be6 --- /dev/null +++ b/core/src/main/java/info/nightscout/androidaps/utils/extensions/UserEntryStrings.kt @@ -0,0 +1,104 @@ +package info.nightscout.androidaps.utils.extensions + +import info.nightscout.androidaps.core.R +import info.nightscout.androidaps.database.entities.UserEntry + +fun UserEntry.Action.stringId(): Int { + return when { + this == UserEntry.Action.BOLUS -> R.string.uel_bolus + this == UserEntry.Action.BOLUS_WIZARD -> R.string.uel_bolus_wizard + this == UserEntry.Action.BOLUS_ADVISOR -> R.string.uel_bolus_advisor + this == UserEntry.Action.BOLUS_RECORD -> R.string.uel_bolus_record + this == UserEntry.Action.EXTENDED_BOLUS -> R.string.uel_extended_bolus + this == UserEntry.Action.SUPERBOLUS_TBR -> R.string.uel_superbolus_tbr + this == UserEntry.Action.CARBS -> R.string.uel_carbs + this == UserEntry.Action.EXTENDED_CARBS -> R.string.uel_extended_carbs + this == UserEntry.Action.TEMP_BASAL -> R.string.uel_temp_basal + this == UserEntry.Action.TT -> R.string.uel_tt + this == UserEntry.Action.TT_ACTIVITY -> R.string.uel_tt_activity + this == UserEntry.Action.TT_EATING_SOON -> R.string.uel_tt_eating_soon + this == UserEntry.Action.TT_HYPO -> R.string.uel_tt_hypo + this == UserEntry.Action.NEW_PROFILE -> R.string.uel_new_profile + this == UserEntry.Action.CLONE_PROFILE -> R.string.uel_clone_profile + this == UserEntry.Action.STORE_PROFILE -> R.string.uel_store_profile + this == UserEntry.Action.PROFILE_SWITCH -> R.string.uel_profile_switch + this == UserEntry.Action.PROFILE_SWITCH_CLONED -> R.string.uel_profile_switch_cloned + this == UserEntry.Action.CLOSED_LOOP_MODE -> R.string.uel_closed_loop_mode + this == UserEntry.Action.LGS_LOOP_MODE -> R.string.uel_lgs_loop_mode + this == UserEntry.Action.OPEN_LOOP_MODE -> R.string.uel_open_loop_mode + this == UserEntry.Action.LOOP_DISABLED -> R.string.uel_loop_disabled + this == UserEntry.Action.LOOP_ENABLED -> R.string.uel_loop_enabled + this == UserEntry.Action.RECONNECT -> R.string.uel_reconnect + this == UserEntry.Action.DISCONNECT_15M -> R.string.uel_disconnect_15m + this == UserEntry.Action.DISCONNECT_30M -> R.string.uel_disconnect_30m + this == UserEntry.Action.DISCONNECT_1H -> R.string.uel_disconnect_1h + this == UserEntry.Action.DISCONNECT_2H -> R.string.uel_disconnect_2h + this == UserEntry.Action.DISCONNECT_3H -> R.string.uel_disconnect_3h + this == UserEntry.Action.RESUME -> R.string.uel_resume + this == UserEntry.Action.SUSPEND_1H -> R.string.uel_suspend_1h + this == UserEntry.Action.SUSPEND_2H -> R.string.uel_suspend_2h + this == UserEntry.Action.SUSPEND_3H -> R.string.uel_suspend_3h + this == UserEntry.Action.SUSPEND_10H -> R.string.uel_suspend_10h + this == UserEntry.Action.HW_PUMP_ALLOWED -> R.string.uel_hw_pump_allowed + this == UserEntry.Action.CLEAR_PAIRING_KEYS -> R.string.uel_clear_pairing_keys + this == UserEntry.Action.ACCEPTS_TEMP_BASAL -> R.string.uel_accepts_temp_basal + this == UserEntry.Action.CANCEL_TEMP_BASAL -> R.string.uel_cancel_temp_basal + this == UserEntry.Action.CANCEL_EXTENDED_BOLUS -> R.string.uel_cancel_extended_bolus + this == UserEntry.Action.CANCEL_TT -> R.string.uel_cancel_tt + this == UserEntry.Action.CAREPORTAL -> R.string.uel_careportal + this == UserEntry.Action.CALIBRATION -> R.string.uel_calibration + this == UserEntry.Action.INSULIN_CHANGE -> R.string.uel_insulin_change + this == UserEntry.Action.PRIME_BOLUS -> R.string.uel_prime_bolus + this == UserEntry.Action.SITE_CHANGE -> R.string.uel_site_change + this == UserEntry.Action.TREATMENT -> R.string.uel_treatment + this == UserEntry.Action.CAREPORTAL_NS_REFRESH -> R.string.uel_careportal_ns_refresh + this == UserEntry.Action.PROFILE_SWITCH_NS_REFRESH -> R.string.uel_profile_switch_ns_refresh + this == UserEntry.Action.TREATMENTS_NS_REFRESH -> R.string.uel_treatments_ns_refresh + this == UserEntry.Action.TT_NS_REFRESH -> R.string.uel_tt_ns_refresh + this == UserEntry.Action.AUTOMATION_REMOVED -> R.string.uel_automation_removed + this == UserEntry.Action.BG_REMOVED -> R.string.uel_bg_removed + this == UserEntry.Action.CAREPORTAL_REMOVED -> R.string.uel_careportal_removed + this == UserEntry.Action.EXTENDED_BOLUS_REMOVED -> R.string.uel_extended_bolus_removed + this == UserEntry.Action.FOOD_REMOVED -> R.string.uel_food_removed + this == UserEntry.Action.PROFILE_REMOVED -> R.string.uel_profile_removed + this == UserEntry.Action.PROFILE_SWITCH_REMOVED -> R.string.uel_profile_switch_removed + this == UserEntry.Action.RESTART_EVENTS_REMOVED -> R.string.uel_restart_events_removed + this == UserEntry.Action.TREATMENT_REMOVED -> R.string.uel_treatment_removed + this == UserEntry.Action.TT_REMOVED -> R.string.uel_tt_removed + this == UserEntry.Action.NS_PAUSED -> R.string.uel_ns_paused + this == UserEntry.Action.NS_QUEUE_CLEARED -> R.string.uel_ns_queue_cleared + this == UserEntry.Action.NS_SETTINGS_COPIED -> R.string.uel_ns_settings_copied + this == UserEntry.Action.ERROR_DIALOG_OK -> R.string.uel_error_dialog_ok + this == UserEntry.Action.ERROR_DIALOG_MUTE -> R.string.uel_error_dialog_mute + this == UserEntry.Action.ERROR_DIALOG_MUTE_5MIN -> R.string.uel_error_dialog_mute_5min + this == UserEntry.Action.OBJECTIVE_STARTED -> R.string.uel_objective_started + this == UserEntry.Action.OBJECTIVE_UNSTARTED -> R.string.uel_objective_unstarted + this == UserEntry.Action.OBJECTIVES_SKIPPED -> R.string.uel_objectives_skipped + this == UserEntry.Action.STAT_RESET -> R.string.uel_stat_reset + this == UserEntry.Action.DELETE_LOGS -> R.string.uel_delete_logs + this == UserEntry.Action.DELETE_FUTURE_TREATMENTS -> R.string.uel_delete_future_treatments + this == UserEntry.Action.EXPORT_SETTINGS -> R.string.uel_export_settings + this == UserEntry.Action.IMPORT_SETTINGS -> R.string.uel_import_settings + this == UserEntry.Action.RESET_DATABASES -> R.string.uel_reset_databases + this == UserEntry.Action.EXPORT_DATABASES -> R.string.uel_export_databases + this == UserEntry.Action.IMPORT_DATABASES -> R.string.uel_import_databases + this == UserEntry.Action.OTP_EXPORT -> R.string.uel_otp_export + this == UserEntry.Action.OTP_RESET -> R.string.uel_otp_reset + this == UserEntry.Action.SMS_BASAL -> R.string.uel_sms_basal + this == UserEntry.Action.SMS_BOLUS -> R.string.uel_sms_bolus + this == UserEntry.Action.SMS_CAL -> R.string.uel_sms_cal + this == UserEntry.Action.SMS_CARBS -> R.string.uel_sms_carbs + this == UserEntry.Action.SMS_EXTENDED_BOLUS -> R.string.uel_sms_extended_bolus + this == UserEntry.Action.SMS_LOOP_DISABLED -> R.string.uel_sms_loop_disabled + this == UserEntry.Action.SMS_LOOP_ENABLED -> R.string.uel_sms_loop_enabled + this == UserEntry.Action.SMS_LOOP_RESUME -> R.string.uel_sms_loop_resume + this == UserEntry.Action.SMS_LOOP_SUSPEND -> R.string.uel_sms_loop_suspend + this == UserEntry.Action.SMS_PROFILE -> R.string.uel_sms_profile + this == UserEntry.Action.SMS_PUMP_CONNECT -> R.string.uel_sms_pump_connect + this == UserEntry.Action.SMS_PUMP_DISCONNECT -> R.string.uel_sms_pump_disconnect + this == UserEntry.Action.SMS_SMS -> R.string.uel_sms_sms + this == UserEntry.Action.SMS_TT -> R.string.uel_sms_tt + else -> R.string.uel_sms_tt + + } +} \ No newline at end of file diff --git a/database/src/main/java/info/nightscout/androidaps/database/entities/UserEntry.kt b/database/src/main/java/info/nightscout/androidaps/database/entities/UserEntry.kt index 0f1f66c574..ecc4e98c52 100644 --- a/database/src/main/java/info/nightscout/androidaps/database/entities/UserEntry.kt +++ b/database/src/main/java/info/nightscout/androidaps/database/entities/UserEntry.kt @@ -22,100 +22,99 @@ data class UserEntry( var i1: Int, var i2: Int ) : DBEntry, DBEntryWithTime { - enum class Action (val stringId:Int) { - @SerializedName("BOLUS") BOLUS (R.string.uel_bolus), - @SerializedName("BOLUS_WIZARD") BOLUS_WIZARD (R.string.uel_bolus_wizard), - @SerializedName("BOLUS_ADVISOR") BOLUS_ADVISOR (R.string.uel_bolus_advisor), - @SerializedName("BOLUS_RECORD") BOLUS_RECORD (R.string.uel_bolus_record), - @SerializedName("EXTENDED_BOLUS") EXTENDED_BOLUS (R.string.uel_extended_bolus), - @SerializedName("SUPERBOLUS_TBR") SUPERBOLUS_TBR (R.string.uel_superbolus_tbr), - @SerializedName("CARBS") CARBS (R.string.uel_carbs), - @SerializedName("EXTENDED_CARBS") EXTENDED_CARBS (R.string.uel_extended_carbs), - @SerializedName("TEMP_BASAL") TEMP_BASAL (R.string.uel_temp_basal), - @SerializedName("TT") TT (R.string.uel_tt), - @SerializedName("TT_ACTIVITY") TT_ACTIVITY (R.string.uel_tt_activity), - @SerializedName("TT_EATING_SOON") TT_EATING_SOON (R.string.uel_tt_eating_soon), - @SerializedName("TT_HYPO") TT_HYPO (R.string.uel_tt_hypo), - @SerializedName("NEW_PROFILE") NEW_PROFILE (R.string.uel_new_profile), - @SerializedName("CLONE_PROFILE") CLONE_PROFILE (R.string.uel_clone_profile), - @SerializedName("STORE_PROFILE") STORE_PROFILE (R.string.uel_store_profile), - @SerializedName("PROFILE_SWITCH") PROFILE_SWITCH (R.string.uel_profile_switch), - @SerializedName("PROFILE_SWITCH_CLONED") PROFILE_SWITCH_CLONED (R.string.uel_profile_switch_cloned), - @SerializedName("CLOSED_LOOP_MODE") CLOSED_LOOP_MODE (R.string.uel_closed_loop_mode), - @SerializedName("LGS_LOOP_MODE") LGS_LOOP_MODE (R.string.uel_lgs_loop_mode), - @SerializedName("OPEN_LOOP_MODE") OPEN_LOOP_MODE (R.string.uel_open_loop_mode), - @SerializedName("LOOP_DISABLED") LOOP_DISABLED (R.string.uel_loop_disabled), - @SerializedName("LOOP_ENABLED") LOOP_ENABLED (R.string.uel_loop_enabled), - @SerializedName("RECONNECT") RECONNECT (R.string.uel_reconnect), - @SerializedName("DISCONNECT_15M") DISCONNECT_15M (R.string.uel_disconnect_15m), - @SerializedName("DISCONNECT_30M") DISCONNECT_30M (R.string.uel_disconnect_30m), - @SerializedName("DISCONNECT_1H") DISCONNECT_1H (R.string.uel_disconnect_1h), - @SerializedName("DISCONNECT_2H") DISCONNECT_2H (R.string.uel_disconnect_2h), - @SerializedName("DISCONNECT_3H") DISCONNECT_3H (R.string.uel_disconnect_3h), - @SerializedName("RESUME") RESUME (R.string.uel_resume), - @SerializedName("SUSPEND_1H") SUSPEND_1H (R.string.uel_suspend_1h), - @SerializedName("SUSPEND_2H") SUSPEND_2H (R.string.uel_suspend_2h), - @SerializedName("SUSPEND_3H") SUSPEND_3H (R.string.uel_suspend_3h), - @SerializedName("SUSPEND_10H") SUSPEND_10H (R.string.uel_suspend_10h), - @SerializedName("HW_PUMP_ALLOWED") HW_PUMP_ALLOWED (R.string.uel_hw_pump_allowed), - @SerializedName("CLEAR_PAIRING_KEYS") CLEAR_PAIRING_KEYS (R.string.uel_clear_pairing_keys), - @SerializedName("ACCEPTS_TEMP_BASAL") ACCEPTS_TEMP_BASAL (R.string.uel_accepts_temp_basal), - @SerializedName("CANCEL_TEMP_BASAL") CANCEL_TEMP_BASAL (R.string.uel_cancel_temp_basal), - @SerializedName("CANCEL_EXTENDED_BOLUS") CANCEL_EXTENDED_BOLUS (R.string.uel_cancel_extended_bolus), - @SerializedName("CANCEL_TT") CANCEL_TT (R.string.uel_cancel_tt), - @SerializedName("CAREPORTAL") CAREPORTAL (R.string.uel_careportal), - @SerializedName("CALIBRATION") CALIBRATION (R.string.uel_calibration), - @SerializedName("INSULIN_CHANGE") INSULIN_CHANGE (R.string.uel_insulin_change), - @SerializedName("PRIME_BOLUS") PRIME_BOLUS (R.string.uel_prime_bolus), - @SerializedName("SITE_CHANGE") SITE_CHANGE (R.string.uel_site_change), - @SerializedName("TREATMENT") TREATMENT (R.string.uel_treatment), - @SerializedName("CAREPORTAL_NS_REFRESH") CAREPORTAL_NS_REFRESH (R.string.uel_careportal_ns_refresh), - @SerializedName("PROFILE_SWITCH_NS_REFRESH") PROFILE_SWITCH_NS_REFRESH (R.string.uel_profile_switch_ns_refresh), - @SerializedName("TREATMENTS_NS_REFRESH") TREATMENTS_NS_REFRESH (R.string.uel_treatments_ns_refresh), - @SerializedName("TT_NS_REFRESH") TT_NS_REFRESH (R.string.uel_tt_ns_refresh), - @SerializedName("AUTOMATION_REMOVED") AUTOMATION_REMOVED (R.string.uel_automation_removed), - @SerializedName("BG_REMOVED") BG_REMOVED (R.string.uel_bg_removed), - @SerializedName("CAREPORTAL_REMOVED") CAREPORTAL_REMOVED (R.string.uel_careportal_removed), - @SerializedName("EXTENDED_BOLUS_REMOVED") EXTENDED_BOLUS_REMOVED (R.string.uel_extended_bolus_removed), - @SerializedName("FOOD_REMOVED") FOOD_REMOVED (R.string.uel_food_removed), - @SerializedName("PROFILE_REMOVED") PROFILE_REMOVED (R.string.uel_profile_removed), - @SerializedName("PROFILE_SWITCH_REMOVED") PROFILE_SWITCH_REMOVED (R.string.uel_profile_switch_removed), - @SerializedName("RESTART_EVENTS_REMOVED") RESTART_EVENTS_REMOVED (R.string.uel_restart_events_removed), - @SerializedName("TREATMENT_REMOVED") TREATMENT_REMOVED (R.string.uel_treatment_removed), - @SerializedName("TT_REMOVED") TT_REMOVED (R.string.uel_tt_removed), - @SerializedName("NS_PAUSED") NS_PAUSED (R.string.uel_ns_paused), - @SerializedName("NS_QUEUE_CLEARED") NS_QUEUE_CLEARED (R.string.uel_ns_queue_cleared), - @SerializedName("NS_SETTINGS_COPIED") NS_SETTINGS_COPIED (R.string.uel_ns_settings_copied), - @SerializedName("ERROR_DIALOG_OK") ERROR_DIALOG_OK (R.string.uel_error_dialog_ok), - @SerializedName("ERROR_DIALOG_MUTE") ERROR_DIALOG_MUTE (R.string.uel_error_dialog_mute), - @SerializedName("ERROR_DIALOG_MUTE_5MIN") ERROR_DIALOG_MUTE_5MIN (R.string.uel_error_dialog_mute_5min), - @SerializedName("OBJECTIVE_STARTED") OBJECTIVE_STARTED (R.string.uel_objective_started), - @SerializedName("OBJECTIVE_UNSTARTED") OBJECTIVE_UNSTARTED (R.string.uel_objective_unstarted), - @SerializedName("OBJECTIVES_SKIPPED") OBJECTIVES_SKIPPED (R.string.uel_objectives_skipped), - @SerializedName("STAT_RESET") STAT_RESET (R.string.uel_stat_reset), - @SerializedName("DELETE_LOGS") DELETE_LOGS (R.string.uel_delete_logs), - @SerializedName("DELETE_FUTURE_TREATMENTS") DELETE_FUTURE_TREATMENTS (R.string.uel_delete_future_treatments), - @SerializedName("EXPORT_SETTINGS") EXPORT_SETTINGS (R.string.uel_export_settings), - @SerializedName("IMPORT_SETTINGS") IMPORT_SETTINGS (R.string.uel_import_settings), - @SerializedName("RESET_DATABASES") RESET_DATABASES (R.string.uel_reset_databases), - @SerializedName("EXPORT_DATABASES") EXPORT_DATABASES (R.string.uel_export_databases), - @SerializedName("IMPORT_DATABASES") IMPORT_DATABASES (R.string.uel_import_databases), - @SerializedName("OTP_EXPORT") OTP_EXPORT (R.string.uel_otp_export), - @SerializedName("OTP_RESET") OTP_RESET (R.string.uel_otp_reset), - @SerializedName("SMS_BASAL") SMS_BASAL (R.string.uel_sms_basal), - @SerializedName("SMS_BOLUS") SMS_BOLUS (R.string.uel_sms_bolus), - @SerializedName("SMS_CAL") SMS_CAL (R.string.uel_sms_cal), - @SerializedName("SMS_CARBS") SMS_CARBS (R.string.uel_sms_carbs), - @SerializedName("SMS_EXTENDED_BOLUS") SMS_EXTENDED_BOLUS (R.string.uel_sms_extended_bolus), - @SerializedName("SMS_LOOP_DISABLED") SMS_LOOP_DISABLED (R.string.uel_sms_loop_disabled), - @SerializedName("SMS_LOOP_ENABLED") SMS_LOOP_ENABLED (R.string.uel_sms_loop_enabled), - @SerializedName("SMS_LOOP_RESUME") SMS_LOOP_RESUME (R.string.uel_sms_loop_resume), - @SerializedName("SMS_LOOP_SUSPEND") SMS_LOOP_SUSPEND (R.string.uel_sms_loop_suspend), - @SerializedName("SMS_PROFILE") SMS_PROFILE (R.string.uel_sms_profile), - @SerializedName("SMS_PUMP_CONNECT") SMS_PUMP_CONNECT (R.string.uel_sms_pump_connect), - @SerializedName("SMS_PUMP_DISCONNECT") SMS_PUMP_DISCONNECT (R.string.uel_sms_pump_disconnect), - @SerializedName("SMS_SMS") SMS_SMS (R.string.uel_sms_sms), - @SerializedName("SMS_TT") SMS_TT (R.string.uel_sms_tt), - + enum class Action () { + @SerializedName("BOLUS") BOLUS, + @SerializedName("BOLUS_WIZARD") BOLUS_WIZARD, + @SerializedName("BOLUS_ADVISOR") BOLUS_ADVISOR, + @SerializedName("BOLUS_RECORD") BOLUS_RECORD, + @SerializedName("EXTENDED_BOLUS") EXTENDED_BOLUS, + @SerializedName("SUPERBOLUS_TBR") SUPERBOLUS_TBR, + @SerializedName("CARBS") CARBS, + @SerializedName("EXTENDED_CARBS") EXTENDED_CARBS, + @SerializedName("TEMP_BASAL") TEMP_BASAL, + @SerializedName("TT") TT, + @SerializedName("TT_ACTIVITY") TT_ACTIVITY, + @SerializedName("TT_EATING_SOON") TT_EATING_SOON, + @SerializedName("TT_HYPO") TT_HYPO, + @SerializedName("NEW_PROFILE") NEW_PROFILE, + @SerializedName("CLONE_PROFILE") CLONE_PROFILE, + @SerializedName("STORE_PROFILE") STORE_PROFILE, + @SerializedName("PROFILE_SWITCH") PROFILE_SWITCH, + @SerializedName("PROFILE_SWITCH_CLONED") PROFILE_SWITCH_CLONED, + @SerializedName("CLOSED_LOOP_MODE") CLOSED_LOOP_MODE, + @SerializedName("LGS_LOOP_MODE") LGS_LOOP_MODE, + @SerializedName("OPEN_LOOP_MODE") OPEN_LOOP_MODE, + @SerializedName("LOOP_DISABLED") LOOP_DISABLED, + @SerializedName("LOOP_ENABLED") LOOP_ENABLED, + @SerializedName("RECONNECT") RECONNECT, + @SerializedName("DISCONNECT_15M") DISCONNECT_15M, + @SerializedName("DISCONNECT_30M") DISCONNECT_30M, + @SerializedName("DISCONNECT_1H") DISCONNECT_1H, + @SerializedName("DISCONNECT_2H") DISCONNECT_2H, + @SerializedName("DISCONNECT_3H") DISCONNECT_3H, + @SerializedName("RESUME") RESUME, + @SerializedName("SUSPEND_1H") SUSPEND_1H, + @SerializedName("SUSPEND_2H") SUSPEND_2H, + @SerializedName("SUSPEND_3H") SUSPEND_3H, + @SerializedName("SUSPEND_10H") SUSPEND_10H, + @SerializedName("HW_PUMP_ALLOWED") HW_PUMP_ALLOWED, + @SerializedName("CLEAR_PAIRING_KEYS") CLEAR_PAIRING_KEYS, + @SerializedName("ACCEPTS_TEMP_BASAL") ACCEPTS_TEMP_BASAL, + @SerializedName("CANCEL_TEMP_BASAL") CANCEL_TEMP_BASAL, + @SerializedName("CANCEL_EXTENDED_BOLUS") CANCEL_EXTENDED_BOLUS, + @SerializedName("CANCEL_TT") CANCEL_TT, + @SerializedName("CAREPORTAL") CAREPORTAL, + @SerializedName("CALIBRATION") CALIBRATION, + @SerializedName("INSULIN_CHANGE") INSULIN_CHANGE, + @SerializedName("PRIME_BOLUS") PRIME_BOLUS, + @SerializedName("SITE_CHANGE") SITE_CHANGE, + @SerializedName("TREATMENT") TREATMENT, + @SerializedName("CAREPORTAL_NS_REFRESH") CAREPORTAL_NS_REFRESH, + @SerializedName("PROFILE_SWITCH_NS_REFRESH") PROFILE_SWITCH_NS_REFRESH, + @SerializedName("TREATMENTS_NS_REFRESH") TREATMENTS_NS_REFRESH, + @SerializedName("TT_NS_REFRESH") TT_NS_REFRESH, + @SerializedName("AUTOMATION_REMOVED") AUTOMATION_REMOVED, + @SerializedName("BG_REMOVED") BG_REMOVED, + @SerializedName("CAREPORTAL_REMOVED") CAREPORTAL_REMOVED, + @SerializedName("EXTENDED_BOLUS_REMOVED") EXTENDED_BOLUS_REMOVED, + @SerializedName("FOOD_REMOVED") FOOD_REMOVED, + @SerializedName("PROFILE_REMOVED") PROFILE_REMOVED, + @SerializedName("PROFILE_SWITCH_REMOVED") PROFILE_SWITCH_REMOVED, + @SerializedName("RESTART_EVENTS_REMOVED") RESTART_EVENTS_REMOVED, + @SerializedName("TREATMENT_REMOVED") TREATMENT_REMOVED, + @SerializedName("TT_REMOVED") TT_REMOVED, + @SerializedName("NS_PAUSED") NS_PAUSED, + @SerializedName("NS_QUEUE_CLEARED") NS_QUEUE_CLEARED, + @SerializedName("NS_SETTINGS_COPIED") NS_SETTINGS_COPIED, + @SerializedName("ERROR_DIALOG_OK") ERROR_DIALOG_OK, + @SerializedName("ERROR_DIALOG_MUTE") ERROR_DIALOG_MUTE, + @SerializedName("ERROR_DIALOG_MUTE_5MIN") ERROR_DIALOG_MUTE_5MIN, + @SerializedName("OBJECTIVE_STARTED") OBJECTIVE_STARTED, + @SerializedName("OBJECTIVE_UNSTARTED") OBJECTIVE_UNSTARTED, + @SerializedName("OBJECTIVES_SKIPPED") OBJECTIVES_SKIPPED, + @SerializedName("STAT_RESET") STAT_RESET, + @SerializedName("DELETE_LOGS") DELETE_LOGS, + @SerializedName("DELETE_FUTURE_TREATMENTS") DELETE_FUTURE_TREATMENTS, + @SerializedName("EXPORT_SETTINGS") EXPORT_SETTINGS, + @SerializedName("IMPORT_SETTINGS") IMPORT_SETTINGS, + @SerializedName("RESET_DATABASES") RESET_DATABASES, + @SerializedName("EXPORT_DATABASES") EXPORT_DATABASES, + @SerializedName("IMPORT_DATABASES") IMPORT_DATABASES, + @SerializedName("OTP_EXPORT") OTP_EXPORT, + @SerializedName("OTP_RESET") OTP_RESET, + @SerializedName("SMS_BASAL") SMS_BASAL, + @SerializedName("SMS_BOLUS") SMS_BOLUS, + @SerializedName("SMS_CAL") SMS_CAL, + @SerializedName("SMS_CARBS") SMS_CARBS, + @SerializedName("SMS_EXTENDED_BOLUS") SMS_EXTENDED_BOLUS, + @SerializedName("SMS_LOOP_DISABLED") SMS_LOOP_DISABLED, + @SerializedName("SMS_LOOP_ENABLED") SMS_LOOP_ENABLED, + @SerializedName("SMS_LOOP_RESUME") SMS_LOOP_RESUME, + @SerializedName("SMS_LOOP_SUSPEND") SMS_LOOP_SUSPEND, + @SerializedName("SMS_PROFILE") SMS_PROFILE, + @SerializedName("SMS_PUMP_CONNECT") SMS_PUMP_CONNECT, + @SerializedName("SMS_PUMP_DISCONNECT") SMS_PUMP_DISCONNECT, + @SerializedName("SMS_SMS") SMS_SMS, + @SerializedName("SMS_TT") SMS_TT } } \ No newline at end of file