2023-06-06 12:00:24 +02:00
|
|
|
using System.Threading.Tasks;
|
2021-05-13 20:03:07 +02:00
|
|
|
|
2024-04-09 12:53:23 +02:00
|
|
|
namespace ShareeBike.ViewModel.Bikes.Bike.BluetoothLock
|
2021-05-13 20:03:07 +02:00
|
|
|
{
|
2022-09-06 16:08:19 +02:00
|
|
|
public interface IRequestHandler : IRequestHandlerBase
|
|
|
|
{
|
2023-06-06 12:00:24 +02:00
|
|
|
/// <summary> Gets a value indicating whether the ILockIt button which is managed by request handler is visible or not. </summary>
|
2022-09-06 16:08:19 +02:00
|
|
|
bool IsLockitButtonVisible { get; }
|
2021-05-13 20:03:07 +02:00
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
/// <summary> Gets the text of the ILockIt button which is managed by request handler. </summary>
|
|
|
|
string LockitButtonText { get; }
|
2021-05-13 20:03:07 +02:00
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
/// <summary>
|
|
|
|
/// Performs the copri action to be executed when user presses the copri button managed by request handler.
|
|
|
|
/// </summary>
|
2023-06-06 12:00:24 +02:00
|
|
|
/// <returns>New handler object if action succeeded, same handler otherwise.</returns>
|
2022-09-06 16:08:19 +02:00
|
|
|
Task<IRequestHandler> HandleRequestOption1();
|
2021-05-13 20:03:07 +02:00
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
Task<IRequestHandler> HandleRequestOption2();
|
2021-05-13 20:03:07 +02:00
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
/// <summary>
|
2023-06-06 12:00:24 +02:00
|
|
|
/// Holds error description (invalid state).
|
2022-09-06 16:08:19 +02:00
|
|
|
/// </summary>
|
|
|
|
string ErrorText { get; }
|
|
|
|
}
|
2021-05-13 20:03:07 +02:00
|
|
|
}
|