{"action":"created","comment":{"url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/pulls/comments/73061631","id":73061631,"diff_hunk":"@@ -1,27 +1,161 @@\n package pkmnman;\n \n import pkmncore.Pokemon;\n-import pkmncore.PokemonFinder;\n+import pkmncore.PokemonError;\n+import pkmncore.search.PokemonFinder;\n+import pkmncore.storage.PokemonManager;\n+\n+import java.util.List;\n \n public class ApplicationRunner {\n \n     private final PokemonFinder finder;\n     private final Input input;\n     private final Display display;\n+    private final PokemonManager manager;\n \n-    public ApplicationRunner(PokemonFinder finder, Input input, Display display) {\n+    public ApplicationRunner(PokemonFinder finder, PokemonManager manager, Input input, Display display) {\n         this.finder = finder;\n+        this.manager = manager;\n         this.input = input;\n         this.display = display;\n     }\n \n     public void start() {\n         display.clearScreen();\n         display.greet();\n+        getUserAction();\n+    }\n+\n+    public void searchPage() {\n+        display.clearScreen();\n+        display.showSearchHeader();\n         display.promptUser();\n+        Pokemon pokemon = findPokemon();\n+        searchedPokemonPage(pokemon);\n+    }\n+\n+    private Pokemon findPokemon() {\n+        String name = input.get();\n+        Pokemon pokemon = finder.find(name);\n+        display.clearScreen();\n+        return pokemon;\n+    }\n+\n+    public void addPage() {\n+        display.clearScreen();\n+        display.showAddHeader();\n+        display.promptForPokemon();\n         String name = input.get();\n         Pokemon pokemon = finder.find(name);\n+        pokemonPage(pokemon);\n+    }\n+\n+    private void viewPage() {\n+        display.clearScreen();\n+        display.showViewHeader();\n+        List<Pokemon> caughtPokemon = manager.viewCaughtPokemon();\n+        displayCaughtPokemon(caughtPokemon);\n+    }\n+\n+    private void getUserAction() {","path":"src/main/java/pkmnman/ApplicationRunner.java","position":63,"original_position":63,"commit_id":"7fc398ee38edda7b7fab080b4964907d4435bef0","original_commit_id":"7fc398ee38edda7b7fab080b4964907d4435bef0","user":{"login":"felipesere","id":1850188,"avatar_url":"https://avatars.githubusercontent.com/u/1850188?v=3","gravatar_id":"","url":"https://api.github.com/users/felipesere","html_url":"https://github.com/felipesere","followers_url":"https://api.github.com/users/felipesere/followers","following_url":"https://api.github.com/users/felipesere/following{/other_user}","gists_url":"https://api.github.com/users/felipesere/gists{/gist_id}","starred_url":"https://api.github.com/users/felipesere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felipesere/subscriptions","organizations_url":"https://api.github.com/users/felipesere/orgs","repos_url":"https://api.github.com/users/felipesere/repos","events_url":"https://api.github.com/users/felipesere/events{/privacy}","received_events_url":"https://api.github.com/users/felipesere/received_events","type":"User","site_admin":false},"body":"The \"get\" in getUserAction implies that the caller will _get_ something back...","created_at":"2016-08-01T22:03:20Z","updated_at":"2016-08-01T22:03:20Z","html_url":"https://github.com/MollieS/PokemonManagerCLI/pull/2#discussion_r73061631","pull_request_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/MollieS/PokemonManagerCLI/pulls/comments/73061631"},"html":{"href":"https://github.com/MollieS/PokemonManagerCLI/pull/2#discussion_r73061631"},"pull_request":{"href":"https://api.github.com/repos/MollieS/PokemonManagerCLI/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/pulls/2","id":79552290,"html_url":"https://github.com/MollieS/PokemonManagerCLI/pull/2","diff_url":"https://github.com/MollieS/PokemonManagerCLI/pull/2.diff","patch_url":"https://github.com/MollieS/PokemonManagerCLI/pull/2.patch","issue_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/issues/2","number":2,"state":"open","locked":false,"title":"Catchingpokemon","user":{"login":"MollieS","id":11349388,"avatar_url":"https://avatars.githubusercontent.com/u/11349388?v=3","gravatar_id":"","url":"https://api.github.com/users/MollieS","html_url":"https://github.com/MollieS","followers_url":"https://api.github.com/users/MollieS/followers","following_url":"https://api.github.com/users/MollieS/following{/other_user}","gists_url":"https://api.github.com/users/MollieS/gists{/gist_id}","starred_url":"https://api.github.com/users/MollieS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MollieS/subscriptions","organizations_url":"https://api.github.com/users/MollieS/orgs","repos_url":"https://api.github.com/users/MollieS/repos","events_url":"https://api.github.com/users/MollieS/events{/privacy}","received_events_url":"https://api.github.com/users/MollieS/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-01T11:17:18Z","updated_at":"2016-08-01T22:03:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"18121af18640a909f2d620602cf6bcbf12a41529","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/pulls/2/commits","review_comments_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/pulls/2/comments","review_comment_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/issues/2/comments","statuses_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/statuses/7fc398ee38edda7b7fab080b4964907d4435bef0","head":{"label":"MollieS:catchingpokemon","ref":"catchingpokemon","sha":"7fc398ee38edda7b7fab080b4964907d4435bef0","user":{"login":"MollieS","id":11349388,"avatar_url":"https://avatars.githubusercontent.com/u/11349388?v=3","gravatar_id":"","url":"https://api.github.com/users/MollieS","html_url":"https://github.com/MollieS","followers_url":"https://api.github.com/users/MollieS/followers","following_url":"https://api.github.com/users/MollieS/following{/other_user}","gists_url":"https://api.github.com/users/MollieS/gists{/gist_id}","starred_url":"https://api.github.com/users/MollieS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MollieS/subscriptions","organizations_url":"https://api.github.com/users/MollieS/orgs","repos_url":"https://api.github.com/users/MollieS/repos","events_url":"https://api.github.com/users/MollieS/events{/privacy}","received_events_url":"https://api.github.com/users/MollieS/received_events","type":"User","site_admin":false},"repo":{"id":64403926,"name":"PokemonManagerCLI","full_name":"MollieS/PokemonManagerCLI","owner":{"login":"MollieS","id":11349388,"avatar_url":"https://avatars.githubusercontent.com/u/11349388?v=3","gravatar_id":"","url":"https://api.github.com/users/MollieS","html_url":"https://github.com/MollieS","followers_url":"https://api.github.com/users/MollieS/followers","following_url":"https://api.github.com/users/MollieS/following{/other_user}","gists_url":"https://api.github.com/users/MollieS/gists{/gist_id}","starred_url":"https://api.github.com/users/MollieS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MollieS/subscriptions","organizations_url":"https://api.github.com/users/MollieS/orgs","repos_url":"https://api.github.com/users/MollieS/repos","events_url":"https://api.github.com/users/MollieS/events{/privacy}","received_events_url":"https://api.github.com/users/MollieS/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MollieS/PokemonManagerCLI","description":null,"fork":false,"url":"https://api.github.com/repos/MollieS/PokemonManagerCLI","forks_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/forks","keys_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/teams","hooks_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/hooks","issue_events_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/issues/events{/number}","events_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/events","assignees_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/assignees{/user}","branches_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/branches{/branch}","tags_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/tags","blobs_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/git/refs{/sha}","trees_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/statuses/{sha}","languages_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/languages","stargazers_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/stargazers","contributors_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/contributors","subscribers_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/subscribers","subscription_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/subscription","commits_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/commits{/sha}","git_commits_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/git/commits{/sha}","comments_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/comments{/number}","issue_comment_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/issues/comments{/number}","contents_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/contents/{+path}","compare_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/merges","archive_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/downloads","issues_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/issues{/number}","pulls_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/pulls{/number}","milestones_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/milestones{/number}","notifications_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/labels{/name}","releases_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/releases{/id}","deployments_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/deployments","created_at":"2016-07-28T14:49:50Z","updated_at":"2016-08-01T11:16:54Z","pushed_at":"2016-08-01T11:17:19Z","git_url":"git://github.com/MollieS/PokemonManagerCLI.git","ssh_url":"git@github.com:MollieS/PokemonManagerCLI.git","clone_url":"https://github.com/MollieS/PokemonManagerCLI.git","svn_url":"https://github.com/MollieS/PokemonManagerCLI","homepage":null,"size":95,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"MollieS:master","ref":"master","sha":"1531535987d52599d92427c9bae751eab071644d","user":{"login":"MollieS","id":11349388,"avatar_url":"https://avatars.githubusercontent.com/u/11349388?v=3","gravatar_id":"","url":"https://api.github.com/users/MollieS","html_url":"https://github.com/MollieS","followers_url":"https://api.github.com/users/MollieS/followers","following_url":"https://api.github.com/users/MollieS/following{/other_user}","gists_url":"https://api.github.com/users/MollieS/gists{/gist_id}","starred_url":"https://api.github.com/users/MollieS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MollieS/subscriptions","organizations_url":"https://api.github.com/users/MollieS/orgs","repos_url":"https://api.github.com/users/MollieS/repos","events_url":"https://api.github.com/users/MollieS/events{/privacy}","received_events_url":"https://api.github.com/users/MollieS/received_events","type":"User","site_admin":false},"repo":{"id":64403926,"name":"PokemonManagerCLI","full_name":"MollieS/PokemonManagerCLI","owner":{"login":"MollieS","id":11349388,"avatar_url":"https://avatars.githubusercontent.com/u/11349388?v=3","gravatar_id":"","url":"https://api.github.com/users/MollieS","html_url":"https://github.com/MollieS","followers_url":"https://api.github.com/users/MollieS/followers","following_url":"https://api.github.com/users/MollieS/following{/other_user}","gists_url":"https://api.github.com/users/MollieS/gists{/gist_id}","starred_url":"https://api.github.com/users/MollieS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MollieS/subscriptions","organizations_url":"https://api.github.com/users/MollieS/orgs","repos_url":"https://api.github.com/users/MollieS/repos","events_url":"https://api.github.com/users/MollieS/events{/privacy}","received_events_url":"https://api.github.com/users/MollieS/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MollieS/PokemonManagerCLI","description":null,"fork":false,"url":"https://api.github.com/repos/MollieS/PokemonManagerCLI","forks_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/forks","keys_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/teams","hooks_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/hooks","issue_events_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/issues/events{/number}","events_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/events","assignees_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/assignees{/user}","branches_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/branches{/branch}","tags_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/tags","blobs_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/git/refs{/sha}","trees_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/statuses/{sha}","languages_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/languages","stargazers_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/stargazers","contributors_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/contributors","subscribers_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/subscribers","subscription_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/subscription","commits_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/commits{/sha}","git_commits_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/git/commits{/sha}","comments_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/comments{/number}","issue_comment_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/issues/comments{/number}","contents_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/contents/{+path}","compare_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/merges","archive_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/downloads","issues_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/issues{/number}","pulls_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/pulls{/number}","milestones_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/milestones{/number}","notifications_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/labels{/name}","releases_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/releases{/id}","deployments_url":"https://api.github.com/repos/MollieS/PokemonManagerCLI/deployments","created_at":"2016-07-28T14:49:50Z","updated_at":"2016-08-01T11:16:54Z","pushed_at":"2016-08-01T11:17:19Z","git_url":"git://github.com/MollieS/PokemonManagerCLI.git","ssh_url":"git@github.com:MollieS/PokemonManagerCLI.git","clone_url":"https://github.com/MollieS/PokemonManagerCLI.git","svn_url":"https://github.com/MollieS/PokemonManagerCLI","homepage":null,"size":95,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MollieS/PokemonManagerCLI/pulls/2"},"html":{"href":"https://github.com/MollieS/PokemonManagerCLI/pull/2"},"issue":{"href":"https://api.github.com/repos/MollieS/PokemonManagerCLI/issues/2"},"comments":{"href":"https://api.github.com/repos/MollieS/PokemonManagerCLI/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/MollieS/PokemonManagerCLI/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/MollieS/PokemonManagerCLI/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MollieS/PokemonManagerCLI/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/MollieS/PokemonManagerCLI/statuses/7fc398ee38edda7b7fab080b4964907d4435bef0"}}}}
{"actor":{"display_login":"felipesere"}}