package app.furmeet.events.system.schedule.abstractDataTypes.managed

import app.furmeet.events.bff.R
import java.io.Serializable

object Actions : Serializable {
    enum class Intention : Serializable {
        ARRIVE,
        DEPARTURE,
        SHOWER,
        EAT,
        SLEEP,
        NOTHING,
        CUSTOM,
        ROOMPARTY,
        SELECTION,
    }

    fun actionString(input: Intention): Int {
        return when (input) {
            Intention.ARRIVE -> R.string.schedule_arrive
            Intention.DEPARTURE -> R.string.schedule_departure
            Intention.SHOWER -> R.string.schedule_shower
            Intention.EAT -> R.string.schedule_eat
            Intention.SLEEP -> R.string.schedule_sleep
            Intention.NOTHING -> R.string.schedule_freetime
            Intention.SELECTION -> R.string.schedule
            Intention.ROOMPARTY -> R.string.schedule_roomparty
            Intention.CUSTOM -> R.string.schedule
        }
    }

    fun descriptionString(input: Intention): Int? {
        return when (input) {
            Intention.ARRIVE -> R.string.schedule_arrive_context_at_event
            Intention.DEPARTURE -> R.string.schedule_departure_context_from_event
            Intention.SHOWER -> null
            Intention.EAT -> null
            Intention.SLEEP -> null
            Intention.NOTHING -> null
            Intention.SELECTION -> null
            Intention.ROOMPARTY -> null
            Intention.CUSTOM -> null
        }
    }

    fun descriptionEditString(input: Intention): Int? {
        return when (input) {
            Intention.ARRIVE -> R.string.schedule_arrive_context_at_event
            Intention.DEPARTURE -> R.string.schedule_departure_context_from_event
            Intention.SHOWER -> R.string.schedule_helps_complying_with_rule_621
            Intention.EAT -> R.string.schedule_helps_complying_with_rule_621
            Intention.SLEEP -> R.string.schedule_helps_complying_with_rule_621
            Intention.NOTHING -> null
            Intention.SELECTION -> null
            Intention.ROOMPARTY -> R.string.scredule_roomparty_plusbutton
            Intention.CUSTOM -> R.string.schedule_custom_open_text_box
        }
    }
}