sharee.bike-App/SharedBusinessLogic/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;
2024-04-09 12:53:23 +02:00
using ShareeBike.Model.Connector;
using ShareeBike.Model.Device;
using ShareeBike.Model.User;
using ShareeBike.View;
2022-04-25 22:15:15 +02:00
2024-04-09 12:53:23 +02:00
namespace ShareeBike.ViewModel.Bikes.Bike.CopriLock.RequestHandler
2022-04-25 22:15:15 +02:00
{
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
}