mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-04-21 20:46:28 +02:00
Initial version.
This commit is contained in:
parent
193aaa1a56
commit
b72c67a53e
228 changed files with 25924 additions and 0 deletions
26
TINKLib/ViewModel/Bikes/Bike/BC/StateToText.cs
Normal file
26
TINKLib/ViewModel/Bikes/Bike/BC/StateToText.cs
Normal file
|
@ -0,0 +1,26 @@
|
|||
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}";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue