private void GetPhasesWithStories()
 {
     var user = _objectStore.Load<AgileZenUser>("AgileZenUser.txt");
     var azService = new AgileZenService(user.ApiKey);
     azService.GetPhasesWithStories(_projectId, OnPhasesWithStoriesFetched);
 }
Exemplo n.º 2
0
        private void HandleLoginButtonTouchUpInside(object sender, EventArgs e)
        {
            _loginHandler.HandleLoginBegan();
            var enteredApiKey = _apiKeyTextField.Text;
            _agileZenService = new AgileZenService(enteredApiKey);
            var isAuthenticatedResult = _agileZenService.IsAuthenticated();
            _progressIndicator.StopAnimating();
            if(!isAuthenticatedResult.HasError())
            {
                if(isAuthenticatedResult.Value)
                {
                    HideKeyboard();
                    View.RemoveFromSuperview();
                    _loginHandler.HandleOkApiKey(_apiKeyTextField.Text);

                }
                else
                {
                    _loginHandler.HandleErronousApiKey();
                }
            }
            else
            {
                _loginHandler.HandleNoConnection(isAuthenticatedResult.Error.ToString());
            }
        }
Exemplo n.º 3
0
 private void GetMe()
 {
     var agService = new AgileZenService(_currentUser.ApiKey);
     agService.GetMe(HandleMeCallFinished);
 }