public void OnSuccess(string accessToken, ESocialType socialType) { if (!string.IsNullOrEmpty(accessToken)) { _authController.Send(new FacebookUserAuth(accessToken)); } }
private void SocialLogOut(ESocialType type) { if (type == ESocialType.Facebook) { LoginManager.Instance.LogOut(); } }
private void SocialLogout(ESocialType type) { if (type == ESocialType.Facebook) { _interactor.OnCancel(ESocialType.Facebook); _loginManager.LogOut(); } }
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); }
public void OnError(string error, ESocialType socialType) { Presenter.CheckAuthState(EAuthResponseStatus.Error); }
public void OnCancel(ESocialType socialType) { // Presenter.CheckAuthState(EAuthResponseStatus.Error); }
public void SocialLoginPerform(ESocialType socialType, Action loginActionPlatform) { loginActionPlatform?.Invoke(); }