Version 3.0.312.

This commit is contained in:
Oliver Hauff 2022-06-17 14:17:58 +02:00
parent 310ea37085
commit fd0e63cf10
94 changed files with 3189 additions and 6352 deletions

View file

@ -30,7 +30,7 @@ namespace TINK.Model.Bike.BC
string description = null,
string stationId = null,
Uri operatorUri = null,
TariffDescription tariffDescription = null)
RentalDescription tariffDescription = null)
{
Bike = new Bike(id, lockModel, wheelType, typeOfBike, description);
@ -69,7 +69,7 @@ namespace TINK.Model.Bike.BC
LockModel lockModel,
string stationId,
Uri operatorUri = null,
TariffDescription tariffDescription = null,
RentalDescription tariffDescription = null,
bool? isDemo = DEFAULTVALUEISDEMO,
IEnumerable<string> group = null,
WheelType? wheelType = null,
@ -111,7 +111,7 @@ namespace TINK.Model.Bike.BC
string description,
string stationId,
Uri operatorUri,
TariffDescription tariffDescription,
RentalDescription tariffDescription,
DateTime requestedAt,
string mailAddress,
string code,
@ -157,7 +157,7 @@ namespace TINK.Model.Bike.BC
string description,
string currentStationId,
Uri operatorUri,
TariffDescription tariffDescription,
RentalDescription tariffDescription,
DateTime bookedAt,
string mailAddress,
string code) : this(
@ -190,7 +190,7 @@ namespace TINK.Model.Bike.BC
public string StationId { get; }
/// <summary> Holds description about the tarif. </summary>
public TariffDescription TariffDescription { get; }
public RentalDescription TariffDescription { get; }
/// Holds the rent state of the bike.

View file

@ -39,7 +39,7 @@ namespace TINK.Model.Bike.BC
string stationId = null,
string stationName = null,
Uri operatorUri = null,
TariffDescription tariffDescription = null,
RentalDescription tariffDescription = null,
Func<DateTime> dateTimeProvider = null,
IStateInfo stateInfo = null)
{
@ -82,7 +82,7 @@ namespace TINK.Model.Bike.BC
/// <summary> Holds description about the tarif. </summary>
[DataMember]
public TariffDescription TariffDescription { get; private set; }
public RentalDescription TariffDescription { get; private set; }
/// <summary>
/// Holds the rent state of the bike.

View file

@ -48,7 +48,7 @@ namespace TINK.Model.Bike.BC
Uri OperatorUri { get; }
/// <summary> Holds description about the tarif. </summary>
TariffDescription TariffDescription { get; }
RentalDescription TariffDescription { get; }
/// <summary>
/// Holds the rent state of the bike.

View file

@ -23,7 +23,7 @@ namespace TINK.Model.Bike.BluetoothLock
Guid lockGuid,
string currentStationId,
Uri operatorUri = null,
TariffDescription tariffDescription = null,
RentalDescription tariffDescription = null,
bool? isDemo = DEFAULTVALUEISDEMO,
IEnumerable<string> group = null,
WheelType? wheelType = null,
@ -69,7 +69,7 @@ namespace TINK.Model.Bike.BluetoothLock
string mailAddress,
string currentStationId,
Uri operatorUri,
TariffDescription tariffDescription,
RentalDescription tariffDescription,
Func<DateTime> dateTimeProvider,
bool? isDemo = DEFAULTVALUEISDEMO,
IEnumerable<string> group = null,
@ -118,7 +118,7 @@ namespace TINK.Model.Bike.BluetoothLock
string mailAddress,
string currentStationId,
Uri operatorUri,
TariffDescription tariffDescription = null,
RentalDescription tariffDescription = null,
bool? isDemo = DEFAULTVALUEISDEMO,
IEnumerable<string> group = null,
WheelType? wheelType = null,

View file

@ -22,7 +22,7 @@ namespace TINK.Model.Bike.CopriLock
string currentStationId,
LockInfo lockInfo,
Uri operatorUri = null,
TariffDescription tariffDescription = null,
RentalDescription tariffDescription = null,
bool? isDemo = DEFAULTVALUEISDEMO,
IEnumerable<string> group = null,
WheelType? wheelType = null,
@ -62,7 +62,7 @@ namespace TINK.Model.Bike.CopriLock
string currentStationId,
LockInfo lockInfo,
Uri operatorUri,
TariffDescription tariffDescription,
RentalDescription tariffDescription,
Func<DateTime> dateTimeProvider,
bool? isDemo = DEFAULTVALUEISDEMO,
IEnumerable<string> group = null,
@ -105,7 +105,7 @@ namespace TINK.Model.Bike.CopriLock
string currentStationId,
LockInfo lockInfo,
Uri operatorUri,
TariffDescription tariffDescription = null,
RentalDescription tariffDescription = null,
bool? isDemo = DEFAULTVALUEISDEMO,
IEnumerable<string> group = null,
WheelType? wheelType = null,

View file

@ -0,0 +1,47 @@
using System.Collections.Generic;
namespace TINK.Model.Bikes.Bike
{
/// <summary>
/// Successor of TarifDescription- object.
/// Manages tariff- and rental info.
/// </summary>
public class RentalDescription
{
/// <summary>
/// The different elements of a tariff (example: "Max Gebühr", )
/// </summary>
public class TariffElement
{
/// <summary>
/// Describes the tariff element. To be displayed to user (example of elements: "Gratis Mietzeit", "Mietgebühr", "Max Gebühr").
/// </summary>
public string Description { get; set; } = string.Empty;
/// <summary>
/// Holds the tariff element value. To be displayed to user (example: "9.00 € / Tag").
/// </summary>
public string Value { get; set; } = string.Empty;
}
public class InfoElement
{
public string Key { get; set; }
public string Value { get; set; }
}
/// <summary>
/// Name of the tariff.
/// </summary>
public string Name { get; set; } = string.Empty;
/// <summary>
/// Number of the tariff.
/// </summary>
public int? Id { get; set; }
public Dictionary<string, TariffElement> TariffEntries { get; set; } = new Dictionary<string, TariffElement>();
public Dictionary<string, InfoElement> InfoEntries { get; set; } = new Dictionary<string, InfoElement>();
}
}