home *** CD-ROM | disk | FTP | other *** search
- package com.althea.client.shufflr.controller
- {
- import com.althea.client.shufflr.*;
- import com.althea.client.shufflr.model.*;
- import org.puremvc.as3.multicore.interfaces.*;
- import org.puremvc.as3.multicore.patterns.command.*;
- import org.puremvc.as3.multicore.patterns.observer.*;
-
- public class InitDataCommand extends SimpleCommand
- {
- public function InitDataCommand()
- {
- super();
- }
-
- override public function execute(param1:INotification) : void
- {
- var _loc4_:ShuffleFeedProxy = null;
- var _loc5_:Object = null;
- var _loc2_:String = param1.getName();
- var _loc3_:Object = param1.getBody();
- switch(_loc2_)
- {
- case ApplicationFacade.GET_INIT_DATA:
- _loc4_ = facade.retrieveProxy(ShuffleFeedProxy.NAME) as ShuffleFeedProxy;
- _loc5_ = new Object();
- _loc5_.link = "users/invites/count";
- _loc5_.dataType = ApplicationFacade.GET_INVITE_COUNT;
- sendNotification(ApplicationFacade.GET_DATA,_loc5_);
- _loc5_ = new Object();
- _loc5_.name = "channels";
- _loc5_.title = "Channels";
- _loc5_.link = "navmap/browse/site";
- _loc5_.dataType = "siteMenu";
- sendNotification(ApplicationFacade.GET_DATA,_loc5_);
- _loc5_ = new Object();
- _loc5_.name = "genre";
- _loc5_.title = "Genre";
- _loc5_.link = "navmap/browse/genre";
- _loc5_.dataType = "genreMenu";
- sendNotification(ApplicationFacade.GET_DATA,_loc5_);
- _loc5_ = new Object();
- _loc5_.title = "Tags";
- _loc5_.link = "users/tags";
- _loc5_.dataType = "currUserstags";
- _loc5_.name = "userTags";
- _loc4_.loadData(_loc5_,_loc5_.dataType);
- _loc5_ = new Object();
- _loc5_.title = "Shortcuts";
- _loc5_.link = "users/shortcuts";
- _loc5_.dataType = "loadCurrUserChannelsView";
- _loc5_.name = "shortcuts";
- _loc4_.loadData(_loc5_,_loc5_.dataType);
- }
- }
- }
- }
-
-