module game { export class FishMediator extends puremvc . Mediator { public static NAME : string = "FishMediator" ; public constructor ( viewComponent ) { super ( FishMediator . NAME , viewComponent ) ; FishingJoy . GameCenter . instance ; UICenter . instance . openUI ( commonUI . FishMainScene ) ; this . initGame ( ) ; } private uiHandle ( evt ) { } public listNotificationInterests ( ) { return [ MahjongFourFacadeConst . NOTIFY_COMMON_CHAT , ] ; } public handleNotification ( notification ) { } private initGame ( ) { this . facade . sendNotification ( MahjongFourFacadeConst . SEND_DATA , null , DataRequestCommand . CONNECT_GAME_SERVER ) ; } public onRemove ( ) { super . onRemove ( ) ; } } }