示例#1
0
        private void GetStoriesGroupedByProjectElements()
        {
            _currentUser = _objectStore.Load <AgileZenUser>("AgileZenUser.txt");
            var azService = new AgileZenService(_currentUser.ApiKey);

            azService.GetMyStories(OnStoriesFetched);
        }
示例#2
0
        private void GetPhasesWithStories()
        {
            var user      = _objectStore.Load <AgileZenUser>("AgileZenUser.txt");
            var azService = new AgileZenService(user.ApiKey);

            azService.GetPhasesWithStories(_projectId, OnPhasesWithStoriesFetched);
        }
示例#3
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());
            }
        }
示例#4
0
        private void GetProjectElements()
        {
            var user      = _objectStore.Load <AgileZenUser>("AgileZenUser.txt");
            var azService = new AgileZenService(user.ApiKey);

            azService.GetProjects(OnProjectsFetched);
        }
示例#5
0
        private void GetMe()
        {
            var agService = new AgileZenService(_currentUser.ApiKey);

            agService.GetMe(HandleMeCallFinished);
        }