2023-08-31 12:20:06 +02:00
|
|
|
|
|
|
|
namespace TINK.ViewModel.Bikes
|
2021-05-13 20:03:07 +02:00
|
|
|
{
|
2022-09-06 16:08:19 +02:00
|
|
|
public interface IBikesViewModel
|
|
|
|
{
|
2023-08-31 12:20:06 +02:00
|
|
|
/// <summary> Holds info about active rental process. </summary>
|
2023-08-31 12:31:38 +02:00
|
|
|
IRentalProcessViewModel RentalProcess { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Starts the rental process.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="processViewModel">Rental process values to start with.</param>
|
|
|
|
void StartRentalProcess(IRentalProcessViewModel process);
|
2023-08-31 12:20:06 +02:00
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
/// <summary> Holds info about current action. </summary>
|
|
|
|
string ActionText { get; set; }
|
2021-05-13 20:03:07 +02:00
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
/// <summary>
|
|
|
|
/// True if any action can be performed (request and cancel request)
|
|
|
|
/// </summary>
|
|
|
|
bool IsIdle { get; set; }
|
|
|
|
}
|
2021-05-13 20:03:07 +02:00
|
|
|
}
|