Stop comparing strings

Sometimes in application we identify component state using strings. Writing the same string in many places we can make some typo and application is going to crash. Furthermore our IDE don’t help us in writing those strings.

Enum and class

We can implement a dictionary in two different ways (Enum or Class).

The enum way

The class way