IFuellingEvents.cs 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #region --------------- Copyright Dresser Wayne Pignone -------------
  2. /*
  3. * $Log: /Wrk/Support/ForecourtControl/Wrk/ForecourtControl/Com/IFuellingEvents.cs $
  4. *
  5. * 2 07-01-05 9:01 roger.månsson
  6. * Documentation changes
  7. */
  8. #endregion
  9. using System.Runtime.InteropServices;
  10. namespace Wayne.ForecourtControl.Com
  11. {
  12. /// <summary>
  13. /// Event interface for a IFuelling object.
  14. /// </summary>
  15. [ComVisible(true)]
  16. [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
  17. public interface IFuellingEvents
  18. {
  19. #region Request completed events
  20. /// <summary>
  21. /// Event raised on completion of Reserve request.
  22. /// </summary>
  23. /// <param name="sender">Fuelling object that raised the event</param>
  24. /// <param name="success">True if the request succeeded.</param>
  25. /// <param name="userToken">User token specified when invoking the asynchronous request.</param>
  26. void OnReserveCompleted(IFuelling sender, bool success, object userToken);
  27. /// <summary>
  28. /// Event raised on completion of Unreserve request.
  29. /// </summary>
  30. /// <param name="sender">Fuelling object that raised the event</param>
  31. /// <param name="success">True if the request succeeded.</param>
  32. /// <param name="userToken">User token specified when invoking the asynchronous request.</param>
  33. void OnUnreserveCompleted(IFuelling sender, bool success, object userToken);
  34. /// <summary>
  35. /// Event raised on completion of Transfer request.
  36. /// </summary>
  37. /// <param name="sender">Fuelling object that raised the event</param>
  38. /// <param name="success">True if the request succeeded.</param>
  39. /// <param name="userToken">User token specified when invoking the asynchronous request.</param>
  40. void OnTransferCompleted(IFuelling sender, bool success, object userToken);
  41. /// <summary>
  42. /// Event raised on completion of UndoTransfer request.
  43. /// </summary>
  44. /// <param name="sender">Fuelling object that raised the event</param>
  45. /// <param name="success">True if the request succeeded.</param>
  46. /// <param name="userToken">User token specified when invoking the asynchronous request.</param>
  47. void OnUndoTransferCompleted(IFuelling sender, bool success, object userToken);
  48. /// <summary>
  49. /// Event raised on completion of SetAsPaid request.
  50. /// </summary>
  51. /// <param name="sender">Fuelling object that raised the event</param>
  52. /// <param name="success">True if the request succeeded.</param>
  53. /// <param name="userToken">User token specified when invoking the asynchronous request.</param>
  54. void OnSetAsPaidCompleted(IFuelling sender, bool success, object userToken);
  55. #endregion
  56. }
  57. }