home *** CD-ROM | disk | FTP | other *** search
- package com.althea.client.shufflr.controller
- {
- import com.althea.client.shufflr.ApplicationFacade;
- import com.althea.client.shufflr.model.FacebookProxy;
- import org.puremvc.as3.multicore.interfaces.ICommand;
- import org.puremvc.as3.multicore.interfaces.INotification;
- import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
-
- public class FacebookCommand extends SimpleCommand implements ICommand
- {
- public function FacebookCommand()
- {
- super();
- }
-
- override public function execute(param1:INotification) : void
- {
- var _loc2_:String = param1.getName();
- var _loc3_:Object = param1.getBody();
- switch(_loc2_)
- {
- case ApplicationFacade.FB_CONNECT:
- this.proxy.connect(_loc3_ as String);
- break;
- case ApplicationFacade.FB_GETINFO:
- this.proxy.getInfo(_loc3_ as String);
- break;
- case ApplicationFacade.FB_LOGOUT:
- this.proxy.logout(_loc3_ as String);
- break;
- case ApplicationFacade.FB_GET_PERMS:
- this.proxy.getPerms(_loc3_ as String);
- break;
- case ApplicationFacade.FB_GET_EXTENDED_PERM_KEYS:
- this.proxy.getExtendedPermKeys(_loc3_ as String);
- }
- }
-
- private function get proxy() : FacebookProxy
- {
- return this.facade.retrieveProxy(FacebookProxy.NAME) as FacebookProxy;
- }
- }
- }
-
-