using System; using System.Collections.Generic; namespace TINK.Model.Bikes.BikeInfoNS { /// /// Successor of TarifDescription- object. /// Manages tariff- and rental info. /// public class RentalDescription : IRentalDescription { /// /// The different elements of a tariff (example: "Max Gebühr", ) to be displayed by sharee.bike without processing /// public class TariffElement { /// /// Describes the tariff element (language aware). To be displayed to user (example of elements: "Gratis Mietzeit", "Mietgebühr", "Max Gebühr"). /// public string Description { get; set; } = string.Empty; /// /// Holds the tariff element value (language aware, i.e. value from backend might be english, german, ... depending on smart phone value). To be displayed to user (example: "9.00 € / Tag"). /// public string Value { get; set; } = string.Empty; } /// /// Info element of general purpose (AGB, tracking info, ...) /// public class InfoElement { /// /// Key which identifies the value (required for special processing) /// public string Key { get; set; } /// /// Text (language aware) to be displayed to user. /// public string Value { get; set; } } /// /// Name of the tariff. /// public string Name { get; set; } = string.Empty; /// /// Number of the tariff. /// public int? Id { get; set; } /// /// Holds the time span for which a bike can be reserved. /// public TimeSpan MaxReservationTimeSpan { get; set; } /// /// Dynamic language aware tariff elements to be displayed to user. /// public Dictionary TariffEntries { get; set; } = new Dictionary(); /// /// Well known language aware elements (AGB, tracking info, ...) to be displayed to user. /// public Dictionary InfoEntries { get; set; } = new Dictionary(); } }