namespace TINK.Services.BluetoothLock.Tdo
{
public class VersionInfoTdo
{
///
/// Holds info about firmware- and hardware version of a lock and the type of lock (lock version).
///
private VersionInfoTdo() { }
///
/// Holds the firmware version of the lock.
///
public int FirmwareVersion { get; private set; }
///
/// Holds the hardware version (revision) of the lock.
///
public int HardwareVersion { get; private set; }
///
/// Holds lock version (2 – classic, 3 – plus, 4 – GPS).
///
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;
}
}
}
}