TermsEvent.as 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. package com.imt.intimamedia.events.user
  2. {
  3. import com.imt.flex.cairngormExtended.event.SuperEvent;
  4. import com.imt.intimamedia.control.ApplicationController;
  5. import com.imt.intimamedia.vo.UserVo;
  6. import mx.controls.Alert;
  7. /**
  8. * Evénement de récupération des cgv pour un utilisateur
  9. */
  10. public class TermsEvent extends SuperEvent
  11. {
  12. private var _user : UserVo;
  13. private var _country : String;
  14. public function TermsEvent( user : UserVo, country : String, dispatcher : * = null )
  15. {
  16. super( ApplicationController.USER_TERMS );
  17. this.user = user;
  18. this.country = country;
  19. this.dispatcher = dispatcher;
  20. }
  21. /**
  22. * Utilisateur transporté par l'événement
  23. *
  24. * @default null
  25. */
  26. public function get user () : UserVo
  27. {
  28. return _user;
  29. }
  30. /**
  31. * @private
  32. */
  33. public function set user ( value : UserVo ) : void
  34. {
  35. _user = value;
  36. }
  37. /**
  38. * Utilisateur transporté par l'événement
  39. *
  40. * @default null
  41. */
  42. public function get country () : String
  43. {
  44. return _country;
  45. }
  46. /**
  47. * @private
  48. */
  49. public function set country ( value : String ) : void
  50. {
  51. _country = value;
  52. }
  53. }
  54. }