mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-05 10:36:30 +01:00
42 lines
1.2 KiB
C#
42 lines
1.2 KiB
C#
|
namespace TINK.Services.BluetoothLock.Tdo
|
|||
|
{
|
|||
|
public class VersionInfoTdo
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Holds info about firmware- and hardware version of a lock and the type of lock (lock version).
|
|||
|
/// </summary>
|
|||
|
private VersionInfoTdo() { }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Holds the firmware version of the lock.
|
|||
|
/// </summary>
|
|||
|
public int FirmwareVersion { get; private set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Holds the hardware version (revision) of the lock.
|
|||
|
/// </summary>
|
|||
|
public int HardwareVersion { get; private set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Holds lock version (2 – classic, 3 – plus, 4 – GPS).
|
|||
|
/// </summary>
|
|||
|
public int LockVersion { get; private set; }
|
|||
|
|
|||
|
public class Builder
|
|||
|
{
|
|||
|
private VersionInfoTdo lockVersionTdo = new VersionInfoTdo();
|
|||
|
|
|||
|
public int FirmwareVersion { get => lockVersionTdo.FirmwareVersion; set => lockVersionTdo.FirmwareVersion = value; }
|
|||
|
|
|||
|
public int HardwareVersion { get => lockVersionTdo.HardwareVersion; set => lockVersionTdo.HardwareVersion = value; }
|
|||
|
|
|||
|
public int LockVersion { get => lockVersionTdo.LockVersion; set => lockVersionTdo.LockVersion = value; }
|
|||
|
|
|||
|
public VersionInfoTdo Build()
|
|||
|
{
|
|||
|
return lockVersionTdo;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|