[OSJC-76] replacing GearState enum with class