예제 #1
0
        public PresenterAuth(IViewAuth view, IInteractorAuth interactor, IRouterAuth router,
                             Action facebookCallLoginAction, Action googleCallLoginAction, Action vkCallLoginAction, Action okCallLoginAction,
                             IAuthStylesHolder stylesHolder, IRegAuth authLocaleStrings)
        {
            if (view == null || interactor == null || router == null)
            {
                throw new NullReferenceException();
            }

            _router               = router;
            _view                 = view;
            _interactor           = interactor;
            _view.Presenter       = this;
            _interactor.Presenter = this;
            _authLocaleStrings    = authLocaleStrings;

            _facebookCallLoginAction = facebookCallLoginAction;
            _googleCallLoginAction   = googleCallLoginAction;
            _vkCallLoginAction       = vkCallLoginAction;
            _okCallLoginAction       = okCallLoginAction;
            _stylesHolder            = stylesHolder;

            _view.SetConfig();
        }
예제 #2
0
 public PresenterAuthMOCK(IViewAuth view, IInteractorAuth interactor, IRouterAuth router,
                          Action facebookCallLoginAction, Action googleCallLoginAction, Action vkCallLoginAction, Action okCallLoginAction,
                          IAuthStylesHolder stylesHolder, IRegAuth authLocaleStrings)
     : base(view, interactor, router, facebookCallLoginAction, googleCallLoginAction, vkCallLoginAction, okCallLoginAction, stylesHolder, authLocaleStrings)
 {
 }