mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-16 15:16:34 +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}";
|
|
}
|
|
}
|
|
}
|
|
}
|