sharee.bike-App/TINKLib/ViewModel/Bikes/Bike/BC/StateToText.cs

27 lines
683 B
C#
Raw Normal View History

2021-05-13 20:03:07 +02:00
using TINK.Model.State;
namespace TINK.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}";
}
}
}
}