sharee.bike-App/SharedBusinessLogic/ViewModel/Bikes/Bike/BC/StateToText.cs
2024-04-09 12:53:23 +02:00

26 lines
527 B
C#

using ShareeBike.Model.State;
namespace ShareeBike.ViewModel.Bikes.Bike.BC
{
public static class StateToText
{
/// <summary> Get button text for given copri state. </summary>
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}";
}
}
}
}