private void GetStoriesGroupedByProjectElements() { _currentUser = _objectStore.Load <AgileZenUser>("AgileZenUser.txt"); var azService = new AgileZenService(_currentUser.ApiKey); azService.GetMyStories(OnStoriesFetched); }
private void GetPhasesWithStories() { var user = _objectStore.Load <AgileZenUser>("AgileZenUser.txt"); var azService = new AgileZenService(user.ApiKey); azService.GetPhasesWithStories(_projectId, OnPhasesWithStoriesFetched); }
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()); } }
private void GetProjectElements() { var user = _objectStore.Load <AgileZenUser>("AgileZenUser.txt"); var azService = new AgileZenService(user.ApiKey); azService.GetProjects(OnProjectsFetched); }
private void GetMe() { var agService = new AgileZenService(_currentUser.ApiKey); agService.GetMe(HandleMeCallFinished); }