/// <summary> /// Create a new MaxDuration tariff restriction. /// </summary> /// <param name="MaxDuration">The maximum Duration value.</param> public static ChargingTariffRestriction MaxDuration(TimeSpan MaxDuration) => new ChargingTariffRestriction(Duration: TimeSpanMinMax.FromMax(MaxDuration));
/// <summary> /// Create a new MaxDuration tariff restriction. /// </summary> /// <param name="MaxDuration">The maximum Duration value.</param> public static TariffRestriction MaxDuration(TimeSpan MaxDuration) { return(new TariffRestriction(Duration: TimeSpanMinMax.FromMax(MaxDuration))); }