IFuelGradeMaxVolumes.cs 787 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Runtime.InteropServices;
  3. namespace Wayne.ForecourtControl
  4. {
  5. /// <summary>
  6. /// A collection representing the allowed fuel grade maximum volume, that should be used within the authorize parameters.
  7. /// </summary>
  8. [ComVisible(true)]
  9. public interface IFuelGradeMaxVolumes
  10. {
  11. /// <summary>
  12. /// Indicates the number of fuel grades.
  13. /// </summary>
  14. int Count { get; }
  15. /// <summary>
  16. /// Indexer returning the maximum volume allowed for the fuel grade.
  17. /// </summary>
  18. /// <param name="index">Fuel grade</param>
  19. /// <exception cref="FuelGradeOutOfRangeException">Thrown if the fuel grade is out of range.</exception>
  20. decimal? this[int index] { get; set; }
  21. }
  22. }