Posted By

boblinl on 02/03/10


Tagged


Versions (?)

BusinessDelegate


 / Published in: ActionScript 3
 

  1. package kiosk.business.delegate
  2. {
  3. import core.interfaces.IDelegate;
  4. import kiosk.business.SessionFacade;
  5. import kiosk.model.domain.DomainModel;
  6. import mx.controls.Alert;
  7. import mx.rpc.IResponder;
  8.  
  9. public class HomepageDelegate implements IResponder, IDelegate
  10. {
  11. [Inject]
  12. public var session :SessionFacade;
  13.  
  14. [Inject]
  15. public var domainModel:DomainModel;
  16.  
  17. public function send():void
  18. {
  19. session.getHomepage(this);
  20. }
  21.  
  22. public function result(data:Object):void
  23. {
  24. //domain model caches the business results
  25. }
  26.  
  27. public function fault(info:Object):void
  28. {
  29. Alert.show(info.fault.faultString);
  30. }
  31. }
  32. }

Report this snippet  

You need to login to post a comment.