Exemplo n.º 1
0
 public PrivateMessageFromFriendReceivedMahuaEvent(
     IMahuaApi mahuaApi)
 {
     _mahuaApi   = mahuaApi;
     _OverApp    = new OverApp(mahuaApi);
     _ManagerApp = new ManagerApp(mahuaApi, _OverApp);
     _AdviseApp  = new AdviseApp(mahuaApi, _ManagerApp);
     _PetCdApp   = new PetCdApp(mahuaApi, _AdviseApp);
     _SignApp    = new SignApp(mahuaApi, _PetCdApp);
     _MenuApp    = new MenuApp(mahuaApi, _SignApp);
 }
        public GroupMessageReceivedMahuaEvent(
            IMahuaApi mahuaApi, IServerRemind serverRemind)
        {
            _mahuaApi     = mahuaApi;
            _serverRemind = serverRemind;

            _OverApp    = new OverApp(mahuaApi);
            _DayTaskApp = new DayTaskApp(_mahuaApi, _OverApp);
            _AdviseApp  = new AdviseApp(mahuaApi, _DayTaskApp);
            _PetCdApp   = new PetCdApp(mahuaApi, _AdviseApp);
            _SerOpenApp = new SerOpenApp(mahuaApi, serverRemind, _PetCdApp);
            _SignApp    = new SignApp(mahuaApi, _SerOpenApp);
            _MenuApp    = new MenuApp(mahuaApi, _SignApp);
        }