Update enum class
=> Need help for strings location
This commit is contained in:
parent
db23a5e9f7
commit
bdd5fe383c
|
@ -65,7 +65,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 = action2String(current.action)
|
||||
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
|
||||
|
@ -80,103 +80,5 @@ class TreatmentsUserEntryFragment : DaggerFragment() {
|
|||
|
||||
override fun getItemCount(): Int = entries.size
|
||||
|
||||
private fun action2String(action: UserEntry.Action): String {
|
||||
return when (action) {
|
||||
UserEntry.Action.BOLUS -> resourceHelper.gs(R.string.uel_bolus)
|
||||
UserEntry.Action.BOLUS_WIZARD -> resourceHelper.gs(R.string.uel_bolus_wizard)
|
||||
UserEntry.Action.BOLUS_ADVISOR -> resourceHelper.gs(R.string.uel_bolus_advisor)
|
||||
UserEntry.Action.BOLUS_RECORD -> resourceHelper.gs(R.string.uel_bolus_record)
|
||||
UserEntry.Action.EXTENDED_BOLUS -> resourceHelper.gs(R.string.uel_extended_bolus)
|
||||
UserEntry.Action.SUPERBOLUS_TBR -> resourceHelper.gs(R.string.uel_superbolus_tbr)
|
||||
UserEntry.Action.CARBS -> resourceHelper.gs(R.string.uel_carbs)
|
||||
|
||||
UserEntry.Action.TEMP_BASAL -> resourceHelper.gs(R.string.uel_temp_basal)
|
||||
UserEntry.Action.TT -> resourceHelper.gs(R.string.uel_tt)
|
||||
UserEntry.Action.TT_ACTIVITY -> resourceHelper.gs(R.string.uel_tt_activity)
|
||||
UserEntry.Action.TT_EATING_SOON -> resourceHelper.gs(R.string.uel_tt_eating_soon)
|
||||
UserEntry.Action.TT_HYPO -> resourceHelper.gs(R.string.uel_tt_hypo)
|
||||
UserEntry.Action.NEW_PROFILE -> resourceHelper.gs(R.string.uel_new_profile)
|
||||
UserEntry.Action.CLONE_PROFILE -> resourceHelper.gs(R.string.uel_clone_profile)
|
||||
UserEntry.Action.STORE_PROFILE -> resourceHelper.gs(R.string.uel_store_profile)
|
||||
UserEntry.Action.PROFILE_SWITCH -> resourceHelper.gs(R.string.uel_profile_switch)
|
||||
UserEntry.Action.PROFILE_SWITCH_CLONED -> resourceHelper.gs(R.string.uel_profile_switch_clone)
|
||||
UserEntry.Action.CLOSED_LOOP_MODE -> resourceHelper.gs(R.string.uel_closed_loop_mode)
|
||||
UserEntry.Action.LGS_LOOP_MODE -> resourceHelper.gs(R.string.uel_lgs_loop_mode)
|
||||
UserEntry.Action.OPEN_LOOP_MODE -> resourceHelper.gs(R.string.uel_open_loop_mode)
|
||||
UserEntry.Action.LOOP_DISABLED -> resourceHelper.gs(R.string.uel_loop_disabled)
|
||||
UserEntry.Action.LOOP_ENABLED -> resourceHelper.gs(R.string.uel_loop_enabled)
|
||||
UserEntry.Action.RECONNECT -> resourceHelper.gs(R.string.uel_reconnect)
|
||||
UserEntry.Action.DISCONNECT_15M -> resourceHelper.gs(R.string.uel_disconnect_15m)
|
||||
UserEntry.Action.DISCONNECT_30M -> resourceHelper.gs(R.string.uel_disconnect_30m)
|
||||
UserEntry.Action.DISCONNECT_1H -> resourceHelper.gs(R.string.uel_disconnect_1h)
|
||||
UserEntry.Action.DISCONNECT_2H -> resourceHelper.gs(R.string.uel_disconnect_2h)
|
||||
UserEntry.Action.DISCONNECT_3H -> resourceHelper.gs(R.string.uel_disconnect_3h)
|
||||
UserEntry.Action.RESUME -> resourceHelper.gs(R.string.uel_resume)
|
||||
UserEntry.Action.SUSPEND_1H -> resourceHelper.gs(R.string.uel_suspend_1h)
|
||||
UserEntry.Action.SUSPEND_2H -> resourceHelper.gs(R.string.uel_suspend_2h)
|
||||
UserEntry.Action.SUSPEND_3H -> resourceHelper.gs(R.string.uel_suspend_3h)
|
||||
UserEntry.Action.SUSPEND_10H -> resourceHelper.gs(R.string.uel_suspend_10h)
|
||||
UserEntry.Action.HW_PUMP_ALLOWED -> resourceHelper.gs(R.string.uel_hw_pump_allowed)
|
||||
UserEntry.Action.CLEAR_PAIRING_KEYS -> resourceHelper.gs(R.string.uel_clear_pairing_keys)
|
||||
UserEntry.Action.ACCEPTS_TEMP_BASAL -> resourceHelper.gs(R.string.uel_accepts_temp_basal)
|
||||
UserEntry.Action.CANCEL_TEMP_BASAL -> resourceHelper.gs(R.string.uel_cancel_temp_basal)
|
||||
UserEntry.Action.CANCEL_EXTENDED_BOLUS -> resourceHelper.gs(R.string.uel_cancel_extended_bolus)
|
||||
|
||||
UserEntry.Action.CAREPORTAL -> resourceHelper.gs(R.string.uel_careportal)
|
||||
UserEntry.Action.CALIBRATION -> resourceHelper.gs(R.string.uel_calibration)
|
||||
UserEntry.Action.INSULIN_CHANGE -> resourceHelper.gs(R.string.uel_insulin_change)
|
||||
UserEntry.Action.PRIME_BOLUS -> resourceHelper.gs(R.string.uel_prime_bolus)
|
||||
UserEntry.Action.SITE_CHANGE -> resourceHelper.gs(R.string.uel_site_change)
|
||||
UserEntry.Action.TREATMENT -> resourceHelper.gs(R.string.uel_treatment)
|
||||
UserEntry.Action.CAREPORTAL_NS_REFRESH -> resourceHelper.gs(R.string.uel_careportal_ns_refresh)
|
||||
UserEntry.Action.PROFILE_SWITCH_NS_REFRESH -> resourceHelper.gs(R.string.uel_profile_switch_ns_refresh)
|
||||
UserEntry.Action.TREATMENTS_NS_REFRESH -> resourceHelper.gs(R.string.uel_treat_ns_refresh)
|
||||
UserEntry.Action.TT_NS_REFRESH -> resourceHelper.gs(R.string.uel_tt_ns_refresh)
|
||||
UserEntry.Action.AUTOMATION_REMOVED -> resourceHelper.gs(R.string.uel_autom_removed)
|
||||
UserEntry.Action.BG_REMOVED -> resourceHelper.gs(R.string.uel_bg_removed)
|
||||
UserEntry.Action.CAREPORTAL_REMOVED -> resourceHelper.gs(R.string.uel_removed_carep)
|
||||
UserEntry.Action.EXTENDED_BOLUS_REMOVED -> resourceHelper.gs(R.string.uel_removed_eb)
|
||||
UserEntry.Action.FOOD_REMOVED -> resourceHelper.gs(R.string.uel_food_removed)
|
||||
UserEntry.Action.PROFILE_REMOVED -> resourceHelper.gs(R.string.uel_remove_profile)
|
||||
UserEntry.Action.PROFILE_SWITCH_REMOVED -> resourceHelper.gs(R.string.uel_removed_profile_switch)
|
||||
UserEntry.Action.RESTART_EVENTS_REMOVED -> resourceHelper.gs(R.string.uel_removed_restart_events)
|
||||
UserEntry.Action.TREATMENT_REMOVED -> resourceHelper.gs(R.string.uel_removed_treatment)
|
||||
UserEntry.Action.TT_REMOVED -> resourceHelper.gs(R.string.uel_removed_tt)
|
||||
UserEntry.Action.NS_PAUSED -> resourceHelper.gs(R.string.uel_ns_paused)
|
||||
UserEntry.Action.NS_QUEUE_CLEARED -> resourceHelper.gs(R.string.uel_ns_queue_cleared)
|
||||
UserEntry.Action.NS_SETTINGS_COPIED -> resourceHelper.gs(R.string.uel_ns_settings_copied)
|
||||
UserEntry.Action.ERROR_DIALOG_OK -> resourceHelper.gs(R.string.uel_error_dialog_ok)
|
||||
UserEntry.Action.ERROR_DIALOG_MUTE -> resourceHelper.gs(R.string.uel_error_dialog_mute)
|
||||
UserEntry.Action.ERROR_DIALOG_MUTE_5MIN -> resourceHelper.gs(R.string.uel_error_dialog_mute_5min)
|
||||
UserEntry.Action.OBJECTIVE_UNSTARTED -> resourceHelper.gs(R.string.uel_objective_unstarted)
|
||||
UserEntry.Action.OBJECTIVES_SKIPPED -> resourceHelper.gs(R.string.uel_objectives_skipped)
|
||||
UserEntry.Action.STAT_RESET -> resourceHelper.gs(R.string.uel_stat_reset)
|
||||
UserEntry.Action.DELETE_LOGS -> resourceHelper.gs(R.string.uel_delete_logs)
|
||||
UserEntry.Action.DELETE_FUTURE_TREATMENTS -> resourceHelper.gs(R.string.uel_delete_future_treatments)
|
||||
UserEntry.Action.EXPORT_SETTINGS -> resourceHelper.gs(R.string.uel_export_settings)
|
||||
UserEntry.Action.IMPORT_SETTINGS -> resourceHelper.gs(R.string.uel_import_settings)
|
||||
UserEntry.Action.RESET_DATABASES -> resourceHelper.gs(R.string.uel_reset_databases)
|
||||
|
||||
UserEntry.Action.OTP_EXPORT -> resourceHelper.gs(R.string.uel_otp_export)
|
||||
UserEntry.Action.OTP_RESET -> resourceHelper.gs(R.string.uel_otp_reset)
|
||||
UserEntry.Action.SMS_BASAL -> resourceHelper.gs(R.string.uel_sms_basal)
|
||||
UserEntry.Action.SMS_BOLUS -> resourceHelper.gs(R.string.uel_sms_bolus)
|
||||
UserEntry.Action.SMS_CAL -> resourceHelper.gs(R.string.uel_sms_cal)
|
||||
UserEntry.Action.SMS_CARBS -> resourceHelper.gs(R.string.uel_sms_carbs)
|
||||
UserEntry.Action.SMS_EXTENDED_BOLUS -> resourceHelper.gs(R.string.uel_sms_extended)
|
||||
UserEntry.Action.SMS_LOOP_DISABLED -> resourceHelper.gs(R.string.uel_sms_loop_disable)
|
||||
UserEntry.Action.SMS_LOOP_ENABLED -> resourceHelper.gs(R.string.uel_sms_loop_enable)
|
||||
UserEntry.Action.SMS_LOOP_RESUME -> resourceHelper.gs(R.string.uel_sms_loop_resume)
|
||||
UserEntry.Action.SMS_LOOP_SUSPEND -> resourceHelper.gs(R.string.uel_sms_loop_suspend)
|
||||
UserEntry.Action.SMS_PROFILE -> resourceHelper.gs(R.string.uel_sms_profile)
|
||||
UserEntry.Action.SMS_PUMP_CONNECT -> resourceHelper.gs(R.string.uel_sms_pump_connect)
|
||||
UserEntry.Action.SMS_PUMP_DISCONNECT -> resourceHelper.gs(R.string.uel_sms_pump_disconnect)
|
||||
UserEntry.Action.SMS_SMS -> resourceHelper.gs(R.string.uel_sms_sms)
|
||||
UserEntry.Action.SMS_TT -> resourceHelper.gs(R.string.uel_sms_target)
|
||||
|
||||
else -> "To be defined"
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1382,95 +1382,6 @@
|
|||
<string name="userentry">User entry</string>
|
||||
<string name="common_values">Use values of your largest food you usually eat\n</string>
|
||||
|
||||
<string name="uel_stat_reset">STATS RESET</string>
|
||||
<string name="uel_calibration">CALIBRATION</string>
|
||||
<string name="uel_tt_activity">TT ACTIVITY</string>
|
||||
<string name="uel_tt_eating_soon">TT EATING SOON</string>
|
||||
<string name="uel_tt_hypo">TT HYPO</string>
|
||||
<string name="uel_carbs">CARBS</string>
|
||||
<string name="uel_careportal">CAREPORTAL</string>
|
||||
<string name="uel_extended_bolus">EXTENDED BOLUS</string>
|
||||
<string name="uel_prime_bolus">PRIME BOLUS</string>
|
||||
<string name="uel_site_change">SITE CHANGE</string>
|
||||
<string name="uel_insulin_change">INSULIN CHANGE</string>
|
||||
<string name="uel_bolus_record">BOLUS RECORD</string>
|
||||
<string name="uel_bolus">BOLUS</string>
|
||||
<string name="uel_closed_loop_mode">CLOSED LOOP MODE</string>
|
||||
<string name="uel_lgs_loop_mode">LGS LOOP MODE</string>
|
||||
<string name="uel_open_loop_mode">OPEN LOOP MODE</string>
|
||||
<string name="uel_loop_disabled">LOOP DISABLED</string>
|
||||
<string name="uel_loop_enabled">LOOP ENABLED</string>
|
||||
<string name="uel_resume">RESUME</string>
|
||||
<string name="uel_reconnect">RECONNECT</string>
|
||||
<string name="uel_suspend_1h">SUSPEND 1h</string>
|
||||
<string name="uel_suspend_2h">SUSPEND 2h</string>
|
||||
<string name="uel_suspend_3h">SUSPEND 3h</string>
|
||||
<string name="uel_suspend_10h">SUSPEND 10h</string>
|
||||
<string name="uel_disconnect_15m">DISCONNECT 15m</string>
|
||||
<string name="uel_disconnect_30m">DISCONNECT 30m</string>
|
||||
<string name="uel_disconnect_1h">DISCONNECT 1h</string>
|
||||
<string name="uel_disconnect_2h">DISCONNECT 2h</string>
|
||||
<string name="uel_disconnect_3h">DISCONNECT 3h</string>
|
||||
<string name="uel_profile_switch">PROFILE SWITCH</string>
|
||||
<string name="uel_temp_basal">TEMP BASAL</string>
|
||||
<string name="uel_tt">TT</string>
|
||||
<string name="uel_treatment">TREATMENT</string>
|
||||
<string name="uel_objective_unstarted">OBJECTIVE UNSTARTED</string>
|
||||
<string name="uel_cancel_extended_bolus">CANCEL EXTENDED BOLUS</string>
|
||||
<string name="uel_cancel_temp_basal">CANCEL TEMP BASAL</string>
|
||||
<string name="uel_autom_removed">AUTOM REMOVED</string>
|
||||
<string name="uel_food_removed">FOOD REMOVED</string>
|
||||
<string name="uel_delete_logs">DELETE LOGS</string>
|
||||
<string name="uel_reset_databases">RESET DATABASES</string>
|
||||
<string name="uel_export_settings">EXPORT SETTINGS</string>
|
||||
<string name="uel_import_settings">IMPORT SETTINGS</string>
|
||||
<string name="uel_accepts_temp_basal">ACCEPT TEMP BASAL</string>
|
||||
<string name="uel_otp_reset">OTP RESET</string>
|
||||
<string name="uel_otp_export">OTP EXPORT</string>
|
||||
<string name="uel_new_profile">NEW PROFILE</string>
|
||||
<string name="uel_clone_profile">CLONE PROFILE</string>
|
||||
<string name="uel_remove_profile">REMOVE PROFILE</string>
|
||||
<string name="uel_bg_removed">BG REMOVED</string>
|
||||
<string name="uel_treat_ns_refresh">TREAT NS REFRESH</string>
|
||||
<string name="uel_delete_future_treatments">DELETE FUTURE TREATMENTS</string>
|
||||
<string name="uel_removed_treatment">REMOVED TREATMENT</string>
|
||||
<string name="uel_careportal_ns_refresh">CAREPORTAL NS REFRESH</string>
|
||||
<string name="uel_removed_restart_events">REMOVED RESTART EVENTS</string>
|
||||
<string name="uel_removed_carep">REMOVED CAREP</string>
|
||||
<string name="uel_removed_eb">REMOVED EB</string>
|
||||
<string name="uel_profile_switch_ns_refresh">PROFILE SWITCH NS REFRESH</string>
|
||||
<string name="uel_removed_profile_switch">REMOVED PROFILE SWITCH</string>
|
||||
<string name="uel_profile_switch_clone">PROFILE SWITCH CLONE</string>
|
||||
<string name="uel_removed_tt">REMOVED TT</string>
|
||||
<string name="uel_tt_ns_refresh">TT NS REFRESH</string>
|
||||
<string name="uel_tt_remove">TT REMOVE</string>
|
||||
<string name="uel_bolus_advisor">BOLUS ADVISOR</string>
|
||||
<string name="uel_superbolus_tbr">SUPERBOLUS TBR</string>
|
||||
<string name="uel_bolus_wizard">BOLUS WIZARD</string>
|
||||
<string name="uel_ns_queue_cleared">NS QUEUE CLEARED</string>
|
||||
<string name="uel_ns_paused">NS PAUSED</string>
|
||||
<string name="uel_hw_pump_allowed">HW PUMP ALLOWED</string>
|
||||
<string name="uel_objectives_skipped">OBJECTIVES SKIPPED</string>
|
||||
<string name="uel_import">IMPORT</string>
|
||||
<string name="uel_ns_settings_copied">NS SETTINGS COPIED</string>
|
||||
<string name="uel_sms_loop_disable">SMS LOOP DISABLE</string>
|
||||
<string name="uel_sms_loop_enable">SMS LOOP ENABLE</string>
|
||||
<string name="uel_sms_loop_resume">SMS LOOP RESUME</string>
|
||||
<string name="uel_sms_loop_suspend">SMS LOOP SUSPEND</string>
|
||||
<string name="uel_sms_pump_connect">SMS PUMP CONNECT</string>
|
||||
<string name="uel_sms_pump_disconnect">SMS PUMP DISCONNECT</string>
|
||||
<string name="uel_sms_profile">SMS PROFILE</string>
|
||||
<string name="uel_sms_basal">SMS BASAL</string>
|
||||
<string name="uel_sms_extended">SMS EXTENDED</string>
|
||||
<string name="uel_sms_bolus">SMS BOLUS</string>
|
||||
<string name="uel_sms_carbs">SMS CARBS</string>
|
||||
<string name="uel_sms_target">SMS TARGET</string>
|
||||
<string name="uel_sms_sms">SMS SMS</string>
|
||||
<string name="uel_sms_cal">SMS CAL</string>
|
||||
<string name="uel_store_profile">STORE PROFILE</string>
|
||||
<string name="uel_error_dialog_ok">ERROR DIALOG OK</string>
|
||||
<string name="uel_error_dialog_mute">ERROR DIALOG MUTE</string>
|
||||
<string name="uel_error_dialog_mute_5min">ERROR DIALOG MUTE 5MIN</string>
|
||||
<string name="uel_clear_pairing_keys">CLEAR PAIRING KEYS</string>
|
||||
|
||||
|
||||
</resources>
|
||||
|
|
|
@ -325,6 +325,101 @@
|
|||
<string name="saturday_short">S</string>
|
||||
<string name="sunday_short">S</string>
|
||||
|
||||
<!-- User Entry -->
|
||||
<string name="uel_bolus">BOLUS</string>
|
||||
<string name="uel_bolus_wizard">BOLUS WIZARD</string>
|
||||
<string name="uel_bolus_advisor">BOLUS ADVISOR</string>
|
||||
<string name="uel_bolus_record">BOLUS RECORD</string>
|
||||
<string name="uel_extended_bolus">EXTENDED BOLUS</string>
|
||||
<string name="uel_superbolus_tbr">SUPERBOLUS TBR</string>
|
||||
<string name="uel_carbs">CARBS</string>
|
||||
<string name="uel_extended_carbs">EXTENDED CARBS</string>
|
||||
<string name="uel_temp_basal">TEMP BASAL</string>
|
||||
<string name="uel_tt">TT</string>
|
||||
<string name="uel_tt_activity">TT ACTIVITY</string>
|
||||
<string name="uel_tt_eating_soon">TT EATING SOON</string>
|
||||
<string name="uel_tt_hypo">TT HYPO</string>
|
||||
<string name="uel_new_profile">NEW PROFILE</string>
|
||||
<string name="uel_clone_profile">CLONE PROFILE</string>
|
||||
<string name="uel_store_profile">STORE PROFILE</string>
|
||||
<string name="uel_profile_switch">PROFILE SWITCH</string>
|
||||
<string name="uel_profile_switch_cloned">PROFILE SWITCH CLONED</string>
|
||||
<string name="uel_closed_loop_mode">CLOSED LOOP MODE</string>
|
||||
<string name="uel_lgs_loop_mode">LGS LOOP MODE</string>
|
||||
<string name="uel_open_loop_mode">OPEN LOOP MODE</string>
|
||||
<string name="uel_loop_disabled">LOOP DISABLED</string>
|
||||
<string name="uel_loop_enabled">LOOP ENABLED</string>
|
||||
<string name="uel_reconnect">RECONNECT</string>
|
||||
<string name="uel_disconnect_15m">DISCONNECT 15M</string>
|
||||
<string name="uel_disconnect_30m">DISCONNECT 30M</string>
|
||||
<string name="uel_disconnect_1h">DISCONNECT 1H</string>
|
||||
<string name="uel_disconnect_2h">DISCONNECT 2H</string>
|
||||
<string name="uel_disconnect_3h">DISCONNECT 3H</string>
|
||||
<string name="uel_resume">RESUME</string>
|
||||
<string name="uel_suspend_1h">SUSPEND 1H</string>
|
||||
<string name="uel_suspend_2h">SUSPEND 2H</string>
|
||||
<string name="uel_suspend_3h">SUSPEND 3H</string>
|
||||
<string name="uel_suspend_10h">SUSPEND 10H</string>
|
||||
<string name="uel_hw_pump_allowed">HW PUMP ALLOWED</string>
|
||||
<string name="uel_clear_pairing_keys">CLEAR PAIRING KEYS</string>
|
||||
<string name="uel_accepts_temp_basal">ACCEPTS TEMP BASAL</string>
|
||||
<string name="uel_cancel_temp_basal">CANCEL TEMP BASAL</string>
|
||||
<string name="uel_cancel_extended_bolus">CANCEL EXTENDED BOLUS</string>
|
||||
<string name="uel_cancel_tt">CANCEL TT</string>
|
||||
<string name="uel_careportal">CAREPORTAL</string>
|
||||
<string name="uel_calibration">CALIBRATION</string>
|
||||
<string name="uel_insulin_change">INSULIN CHANGE</string>
|
||||
<string name="uel_prime_bolus">PRIME BOLUS</string>
|
||||
<string name="uel_site_change">SITE CHANGE</string>
|
||||
<string name="uel_treatment">TREATMENT</string>
|
||||
<string name="uel_careportal_ns_refresh">CAREPORTAL NS REFRESH</string>
|
||||
<string name="uel_profile_switch_ns_refresh">PROFILE SWITCH NS REFRESH</string>
|
||||
<string name="uel_treatments_ns_refresh">TREATMENTS NS REFRESH</string>
|
||||
<string name="uel_tt_ns_refresh">TT NS REFRESH</string>
|
||||
<string name="uel_automation_removed">AUTOMATION REMOVED</string>
|
||||
<string name="uel_bg_removed">BG REMOVED</string>
|
||||
<string name="uel_careportal_removed">CAREPORTAL REMOVED</string>
|
||||
<string name="uel_extended_bolus_removed">EXTENDED BOLUS REMOVED</string>
|
||||
<string name="uel_food_removed">FOOD REMOVED</string>
|
||||
<string name="uel_profile_removed">PROFILE REMOVED</string>
|
||||
<string name="uel_profile_switch_removed">PROFILE SWITCH REMOVED</string>
|
||||
<string name="uel_restart_events_removed">RESTART EVENTS REMOVED</string>
|
||||
<string name="uel_treatment_removed">TREATMENT REMOVED</string>
|
||||
<string name="uel_tt_removed">TT REMOVED</string>
|
||||
<string name="uel_ns_paused">NS PAUSED</string>
|
||||
<string name="uel_ns_queue_cleared">NS QUEUE CLEARED</string>
|
||||
<string name="uel_ns_settings_copied">NS SETTINGS COPIED</string>
|
||||
<string name="uel_error_dialog_ok">ERROR DIALOG OK</string>
|
||||
<string name="uel_error_dialog_mute">ERROR DIALOG MUTE </string>
|
||||
<string name="uel_error_dialog_mute_5min">ERROR DIALOG MUTE 5MIN</string>
|
||||
<string name="uel_objective_started">OBJECTIVE STARTED</string>
|
||||
<string name="uel_objective_unstarted">OBJECTIVE UNSTARTED</string>
|
||||
<string name="uel_objectives_skipped">OBJECTIVES SKIPPED</string>
|
||||
<string name="uel_stat_reset">STAT RESET</string>
|
||||
<string name="uel_delete_logs">DELETE LOGS</string>
|
||||
<string name="uel_delete_future_treatments">DELETE FUTURE TREATMENTS</string>
|
||||
<string name="uel_export_settings">EXPORT SETTINGS</string>
|
||||
<string name="uel_import_settings">IMPORT SETTINGS</string>
|
||||
<string name="uel_reset_databases">RESET DATABASES</string>
|
||||
<string name="uel_export_databases">EXPORT DATABASES</string>
|
||||
<string name="uel_import_databases">IMPORT DATABASES</string>
|
||||
<string name="uel_otp_export">OTP EXPORT</string>
|
||||
<string name="uel_otp_reset">OTP RESET</string>
|
||||
<string name="uel_sms_basal">SMS BASAL</string>
|
||||
<string name="uel_sms_bolus">SMS BOLUS</string>
|
||||
<string name="uel_sms_cal">SMS CAL</string>
|
||||
<string name="uel_sms_carbs">SMS CARBS</string>
|
||||
<string name="uel_sms_extended_bolus">SMS EXTENDED BOLUS</string>
|
||||
<string name="uel_sms_loop_disabled">SMS LOOP DISABLED</string>
|
||||
<string name="uel_sms_loop_enabled">SMS LOOP ENABLED</string>
|
||||
<string name="uel_sms_loop_resume">SMS LOOP RESUME</string>
|
||||
<string name="uel_sms_loop_suspend">SMS LOOP SUSPEND</string>
|
||||
<string name="uel_sms_profile">SMS PROFILE</string>
|
||||
<string name="uel_sms_pump_connect">SMS PUMP CONNECT</string>
|
||||
<string name="uel_sms_pump_disconnect">SMS PUMP DISCONNECT</string>
|
||||
<string name="uel_sms_sms">SMS SMS</string>
|
||||
<string name="uel_sms_tt">SMS TT</string>
|
||||
|
||||
<plurals name="days">
|
||||
<item quantity="one">%1$d day</item>
|
||||
<item quantity="other">%1$d days</item>
|
||||
|
|
|
@ -2,6 +2,8 @@ package info.nightscout.androidaps.database.entities
|
|||
|
||||
import androidx.room.Entity
|
||||
import androidx.room.PrimaryKey
|
||||
import com.google.gson.annotations.SerializedName
|
||||
import info.nightscout.androidaps.database.R
|
||||
import info.nightscout.androidaps.database.TABLE_USER_ENTRY
|
||||
import info.nightscout.androidaps.database.interfaces.DBEntry
|
||||
import info.nightscout.androidaps.database.interfaces.DBEntryWithTime
|
||||
|
@ -20,112 +22,100 @@ data class UserEntry(
|
|||
var i1: Int,
|
||||
var i2: Int
|
||||
) : DBEntry, DBEntryWithTime {
|
||||
enum class Action {
|
||||
BOLUS,
|
||||
BOLUS_WIZARD,
|
||||
BOLUS_ADVISOR,
|
||||
BOLUS_RECORD,
|
||||
EXTENDED_BOLUS,
|
||||
SUPERBOLUS_TBR,
|
||||
CARBS,
|
||||
EXTENDED_CARBS,
|
||||
TEMP_BASAL,
|
||||
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),
|
||||
|
||||
TT,
|
||||
TT_ACTIVITY,
|
||||
TT_EATING_SOON,
|
||||
TT_HYPO,
|
||||
|
||||
NEW_PROFILE,
|
||||
CLONE_PROFILE,
|
||||
STORE_PROFILE,
|
||||
PROFILE_SWITCH,
|
||||
PROFILE_SWITCH_CLONED,
|
||||
|
||||
CLOSED_LOOP_MODE,
|
||||
LGS_LOOP_MODE,
|
||||
OPEN_LOOP_MODE,
|
||||
LOOP_DISABLED,
|
||||
LOOP_ENABLED,
|
||||
RECONNECT,
|
||||
DISCONNECT_15M,
|
||||
DISCONNECT_30M,
|
||||
DISCONNECT_1H,
|
||||
DISCONNECT_2H,
|
||||
DISCONNECT_3H,
|
||||
RESUME,
|
||||
SUSPEND_1H,
|
||||
SUSPEND_2H,
|
||||
SUSPEND_3H,
|
||||
SUSPEND_10H,
|
||||
|
||||
HW_PUMP_ALLOWED,
|
||||
CLEAR_PAIRING_KEYS,
|
||||
ACCEPTS_TEMP_BASAL,
|
||||
CANCEL_TEMP_BASAL,
|
||||
CANCEL_EXTENDED_BOLUS,
|
||||
CANCEL_TT,
|
||||
|
||||
CAREPORTAL,
|
||||
CALIBRATION,
|
||||
INSULIN_CHANGE,
|
||||
PRIME_BOLUS,
|
||||
SITE_CHANGE,
|
||||
|
||||
TREATMENT,
|
||||
CAREPORTAL_NS_REFRESH,
|
||||
PROFILE_SWITCH_NS_REFRESH,
|
||||
TREATMENTS_NS_REFRESH,
|
||||
TT_NS_REFRESH,
|
||||
|
||||
AUTOMATION_REMOVED,
|
||||
BG_REMOVED,
|
||||
CAREPORTAL_REMOVED,
|
||||
EXTENDED_BOLUS_REMOVED,
|
||||
FOOD_REMOVED,
|
||||
PROFILE_REMOVED,
|
||||
PROFILE_SWITCH_REMOVED,
|
||||
RESTART_EVENTS_REMOVED,
|
||||
TREATMENT_REMOVED,
|
||||
TT_REMOVED,
|
||||
|
||||
NS_PAUSED,
|
||||
NS_QUEUE_CLEARED,
|
||||
NS_SETTINGS_COPIED,
|
||||
|
||||
ERROR_DIALOG_OK,
|
||||
ERROR_DIALOG_MUTE ,
|
||||
ERROR_DIALOG_MUTE_5MIN,
|
||||
|
||||
OBJECTIVE_STARTED,
|
||||
OBJECTIVE_UNSTARTED,
|
||||
OBJECTIVES_SKIPPED,
|
||||
|
||||
STAT_RESET,
|
||||
|
||||
DELETE_LOGS,
|
||||
DELETE_FUTURE_TREATMENTS,
|
||||
EXPORT_SETTINGS,
|
||||
IMPORT_SETTINGS,
|
||||
RESET_DATABASES,
|
||||
EXPORT_DATABASES,
|
||||
IMPORT_DATABASES,
|
||||
|
||||
OTP_EXPORT,
|
||||
OTP_RESET,
|
||||
SMS_BASAL,
|
||||
SMS_BOLUS,
|
||||
SMS_CAL,
|
||||
SMS_CARBS,
|
||||
SMS_EXTENDED_BOLUS,
|
||||
SMS_LOOP_DISABLED,
|
||||
SMS_LOOP_ENABLED,
|
||||
SMS_LOOP_RESUME,
|
||||
SMS_LOOP_SUSPEND,
|
||||
SMS_PROFILE,
|
||||
SMS_PUMP_CONNECT,
|
||||
SMS_PUMP_DISCONNECT,
|
||||
SMS_SMS,
|
||||
SMS_TT
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue