home *** CD-ROM | disk | FTP | other *** search
- package com.althea.client.shufflr.model
- {
- import com.althea.client.shufflr.ApplicationFacade;
- import mx.rpc.AsyncToken;
- import mx.rpc.IResponder;
- import mx.rpc.http.HTTPService;
- import org.puremvc.as3.multicore.patterns.proxy.Proxy;
-
- public class MiscCommandProxy extends Proxy implements IResponder
- {
- public static const NAME:String = "MiscCommandProxy";
-
- private var service:HTTPService;
-
- private var username:String;
-
- public function MiscCommandProxy(param1:Object = null)
- {
- super(NAME,param1);
- this.service = new HTTPService();
- this.service.method = "GET";
- this.service.requestTimeout = 20;
- }
-
- public function fault(param1:Object) : void
- {
- var dataType:String = null;
- var rpcEvent:Object = param1;
- try
- {
- dataType = rpcEvent.token.dataType;
- switch(dataType)
- {
- case "isInviteEnabled":
- }
- }
- catch(errObj:Error)
- {
- trace(errObj.message);
- }
- }
-
- public function result(param1:Object) : void
- {
- var dataType:String = null;
- var rpcEvent:Object = param1;
- try
- {
- dataType = rpcEvent.token.dataType;
- switch(dataType)
- {
- case "isInviteEnabled":
- this.sendNotification(ApplicationFacade.SHOW_REGISTRATION,rpcEvent.result.rss.channel.invite_code_enabled);
- }
- }
- catch(errObj:Error)
- {
- trace(errObj.message);
- }
- }
-
- public function isInviteEnabled() : void
- {
- this.service.url = NavMapProxy.serverUrl + "invite_code_enabled";
- var _loc1_:AsyncToken = this.service.send(null);
- _loc1_.dataType = "isInviteEnabled";
- _loc1_.addResponder(this);
- }
- }
- }
-
-