Exemplo n.º 1
0
 public void OnSuccess(string accessToken, ESocialType socialType)
 {
     if (!string.IsNullOrEmpty(accessToken))
     {
         _authController.Send(new FacebookUserAuth(accessToken));
     }
 }
Exemplo n.º 2
0
 private void SocialLogOut(ESocialType type)
 {
     if (type == ESocialType.Facebook)
     {
         LoginManager.Instance.LogOut();
     }
 }
Exemplo n.º 3
0
 private void SocialLogout(ESocialType type)
 {
     if (type == ESocialType.Facebook)
     {
         _interactor.OnCancel(ESocialType.Facebook);
         _loginManager.LogOut();
     }
 }
Exemplo n.º 4
0
        public void SocialOnErrorTest(string error, ESocialType socialType)
        {
            var presenterMock = new Mock <IPresenterAuth>(MockBehavior.Strict);

            presenterMock.Setup(f => f.CheckAuthState(EAuthResponseStatus.Error));
            _interactor.Presenter = presenterMock.Object;
            _interactor.OnError(error, socialType);
        }
Exemplo n.º 5
0
 public void OnError(string error, ESocialType socialType)
 {
     Presenter.CheckAuthState(EAuthResponseStatus.Error);
 }
Exemplo n.º 6
0
 public void OnCancel(ESocialType socialType)
 {
     //  Presenter.CheckAuthState(EAuthResponseStatus.Error);
 }
Exemplo n.º 7
0
 public void SocialLoginPerform(ESocialType socialType, Action loginActionPlatform)
 {
     loginActionPlatform?.Invoke();
 }