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

27 lines
515 B
C#
Raw Normal View History

2021-05-13 20:03:07 +02:00
using TINK.Model.State;
namespace TINK.ViewModel.Bikes.Bike.BC
{
2022-09-06 16:08:19 +02:00
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";
2021-05-13 20:03:07 +02:00
2022-09-06 16:08:19 +02:00
case InUseStateEnum.Reserved:
return "Reservierung aufheben";
2021-05-13 20:03:07 +02:00
2022-09-06 16:08:19 +02:00
case InUseStateEnum.Booked:
return "Miete beenden";
2021-05-13 20:03:07 +02:00
2022-09-06 16:08:19 +02:00
default:
return $"{state}";
}
}
}
2021-05-13 20:03:07 +02:00
}