mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-12-25 08:36:27 +01:00
27 lines
683 B
C#
27 lines
683 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}";
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|