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.DeleteCommandProxy;
- import org.puremvc.as3.multicore.interfaces.ICommand;
- import org.puremvc.as3.multicore.interfaces.INotification;
- import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
-
- public class DeleteCommand extends SimpleCommand implements ICommand
- {
- public function DeleteCommand()
- {
- super();
- }
-
- override public function execute(param1:INotification) : void
- {
- var _loc2_:String = param1.getName();
- var _loc3_:Object = param1.getBody();
- switch(_loc2_)
- {
- case ApplicationFacade.DEL_FOLLOW:
- this.proxy.deleteFriend(_loc3_.userId);
- break;
- case ApplicationFacade.DEL_SHORTCUT:
- this.proxy.delShortcut(_loc3_.shortcut);
- }
- }
-
- private function get proxy() : DeleteCommandProxy
- {
- return this.facade.retrieveProxy(DeleteCommandProxy.NAME) as DeleteCommandProxy;
- }
- }
- }
-
-