Ejemplo n.º 1
0
 /// <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));
Ejemplo n.º 2
0
 /// <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)));
 }