using ShareeBike.Model.State; using ShareeBike.MultilingualResources; 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 AppResources.ActionRequestBike; case InUseStateEnum.Reserved: return AppResources.ActionCancelReservation; case InUseStateEnum.Booked: return AppResources.ActionEndRental; default: return $"{state}"; } } } }