sharee.bike-App/TINKLib/ViewModel/Bikes/Bike/CopriLock/RequestHandler/Base.cs

38 lines
1.4 KiB
C#
Raw Normal View History

2023-06-06 12:00:24 +02:00
using System;
2022-04-25 22:15:15 +02:00
using TINK.Model.Connector;
using TINK.Model.Device;
2022-08-30 15:42:25 +02:00
using TINK.Model.User;
using TINK.View;
2022-04-25 22:15:15 +02:00
namespace TINK.ViewModel.Bikes.Bike.CopriLock.RequestHandler
{
2022-09-06 16:08:19 +02:00
public abstract class Base : BC.RequestHandler.Base<Model.Bikes.BikeInfoNS.CopriLock.IBikeInfoMutable>
{
/// <summary>
2023-06-06 12:00:24 +02:00
/// Constructs the request handler base.
2022-09-06 16:08:19 +02:00
/// </summary>
/// <param name="selectedBike">Bike which is reserved or for which reservation is canceled.</param>
/// <param name="smartDevice">Provides info about the smart device (phone, tablet, ...)</param>
/// <param name="bikesViewModel">View model to be used for progress report and unlocking/ locking view.</param>
public Base(
Model.Bikes.BikeInfoNS.CopriLock.IBikeInfoMutable selectedBike,
string buttonText,
bool isCopriButtonVisible,
Func<bool> isConnectedDelegate,
Func<bool, IConnector> connectorFactory,
Func<IPollingUpdateTaskManager> viewUpdateManager,
ISmartDevice smartDevice,
IViewService viewService,
IBikesViewModel bikesViewModel,
IUser activeUser) : base(selectedBike, buttonText, isCopriButtonVisible, isConnectedDelegate, connectorFactory, viewUpdateManager, smartDevice, viewService, bikesViewModel, activeUser)
{
}
2022-04-25 22:15:15 +02:00
2022-09-06 16:08:19 +02:00
public string LockitButtonText { get; protected set; }
2022-04-25 22:15:15 +02:00
2022-09-06 16:08:19 +02:00
public bool IsLockitButtonVisible { get; protected set; }
2022-04-25 22:15:15 +02:00
2022-09-06 16:08:19 +02:00
public string ErrorText => string.Empty;
}
2022-04-25 22:15:15 +02:00
}