I have created a Scala Enumeration as follows:
object TimerStatus extends Enumeration {
    type Status = Value
    val InProgress = Value(1, "Pause Timer")
    val Paused = Value(-1, "Resume Timer")  
}
I then have a Match class that contains TimerStatus as a member
How is it possible to retieve the "Pause Timer" or "Resume Timer" text from my enumeration Values?
I can retrieve the id using myMatch.timerStatus.id but I don't see any way to get the name
If not possible, what is best workaround?
.toString method returns the name.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With