sharee.bike-App/TINKLib/ViewModel/Bikes/Bike/BluetoothLock/RequestHandler/IRequestHandler.cs

27 lines
895 B
C#
Raw Normal View History

2021-05-13 20:03:07 +02:00
using System.Threading.Tasks;
namespace TINK.ViewModel.Bikes.Bike.BluetoothLock
{
2022-09-06 16:08:19 +02:00
public interface IRequestHandler : IRequestHandlerBase
{
/// <summary> Gets a value indicating whether the ILockIt button which is managed by request hadnler is visible or not. </summary>
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>
/// <returns>New handler object if action suceeded, same handler otherwise.</returns>
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>
/// Holds error discription (invalid state).
/// </summary>
string ErrorText { get; }
}
2021-05-13 20:03:07 +02:00
}