home *** CD-ROM | disk | FTP | other *** search
- package com.althea.client.shufflr.controller
- {
- import com.althea.client.shufflr.model.UserProxy;
- import com.althea.client.shufflr.model.vo.AuthenticationDescriptor;
- import org.puremvc.as3.multicore.interfaces.ICommand;
- import org.puremvc.as3.multicore.interfaces.INotification;
- import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
-
- public class AuthenticateCommand extends SimpleCommand implements ICommand
- {
- public function AuthenticateCommand()
- {
- super();
- }
-
- override public function execute(param1:INotification) : void
- {
- var _loc2_:AuthenticationDescriptor = param1.getBody() as AuthenticationDescriptor;
- this.proxy.authenticate(_loc2_.username,_loc2_.password,_loc2_.version);
- }
-
- private function get proxy() : UserProxy
- {
- return this.facade.retrieveProxy(UserProxy.NAME) as UserProxy;
- }
- }
- }
-
-