using ShareeBike.Model.State; namespace ShareeBike.ViewModel.Bikes.Bike.BC { public static class StateToText { /// Get button text for given copri state. public static string GetActionText(this InUseStateEnum state) { switch (state) { case InUseStateEnum.Disposable: return "Rad reservieren"; case InUseStateEnum.Reserved: return "Reservierung aufheben"; case InUseStateEnum.Booked: return "Miete beenden"; default: return $"{state}"; } } } }