mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-14 14:26:28 +01:00
26 lines
515 B
C#
26 lines
515 B
C#
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}";
|
|
}
|
|
}
|
|
}
|
|
}
|