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