mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-12-27 17:46:26 +01:00
37 lines
1 KiB
C#
37 lines
1 KiB
C#
|
using System;
|
|||
|
using TINK.Model.Bikes.Bike;
|
|||
|
using TINK.Model.Bikes.Bike.BluetoothLock;
|
|||
|
|
|||
|
namespace TINK.Model.Bike.BluetoothLock
|
|||
|
{
|
|||
|
public class BikeInfoMutable : BC.BikeInfoMutable, IBikeInfoMutable
|
|||
|
{
|
|||
|
/// <summary> Constructs a bike object from source. </summary>
|
|||
|
public BikeInfoMutable(BikeInfo bike) : base(
|
|||
|
bike.Id,
|
|||
|
bike.IsDemo,
|
|||
|
bike.Group,
|
|||
|
bike.WheelType,
|
|||
|
bike.TypeOfBike,
|
|||
|
bike.Description,
|
|||
|
bike.CurrentStation,
|
|||
|
bike.OperatorUri,
|
|||
|
bike.TariffDescription,
|
|||
|
() => DateTime.Now,
|
|||
|
bike.State)
|
|||
|
{
|
|||
|
LockInfo = new LockInfoMutable(
|
|||
|
bike.LockInfo.Id,
|
|||
|
bike.LockInfo.Guid,
|
|||
|
bike.LockInfo.UserKey,
|
|||
|
bike.LockInfo.AdminKey,
|
|||
|
bike.LockInfo.Seed,
|
|||
|
bike.LockInfo.State);
|
|||
|
}
|
|||
|
|
|||
|
public LockInfoMutable LockInfo { get; }
|
|||
|
|
|||
|
ILockInfoMutable IBikeInfoMutable.LockInfo => LockInfo;
|
|||
|
}
|
|||
|
}
|