sharee.bike-App/SharedBusinessLogic/ViewModel/Bikes/IRentalProcessViewModel.cs

38 lines
1.1 KiB
C#
Raw Normal View History

2024-04-09 12:53:23 +02:00
using ShareeBike.Model;
2023-08-31 12:20:06 +02:00
2024-04-09 12:53:23 +02:00
namespace ShareeBike.ViewModel.Bikes
2023-08-31 12:20:06 +02:00
{
2023-08-31 12:31:38 +02:00
public interface IRentalProcessViewModel
2023-08-31 12:20:06 +02:00
{
2023-08-31 12:31:38 +02:00
/// <summary>
/// Loads rental process view model from source.
/// </summary>
/// <param name="processViewModel">Source object to load from.</param>
void LoadFrom(IRentalProcessViewModel processViewModel);
2023-08-31 12:20:06 +02:00
/// <summary>
/// Gets the id of the bike which is rental ends.
/// </summary>
string BikeId { get; }
CurrentRentalProcess State { get; set; }
/// <summary> Holds info about current step in rental process. </summary>
int? StepIndex { get; set; }
/// <summary> Holds info about current step of rental process. </summary>
string StepInfoText { get; set; }
/// <summary> Holds important info about current step of rental process. </summary>
string ImportantStepInfoText { get; set; }
/// <summary> Holds info about status of current rental process. </summary>
CurrentStepStatus Result { get; set; }
/// <summary>
/// Holds the info returned from back end when rent is ended.
/// </summary>
BookingFinishedModel EndRentalInfo { get; set; }
}
}