{"action":"created","comment":{"url":"https://api.github.com/repos/chacaa/CriminalIntent/pulls/comments/101338196","pull_request_review_id":22063408,"id":101338196,"diff_hunk":"@@ -0,0 +1,70 @@\n+package com.xmartlabs.scasas.criminalintent.ui.crime.simple;\n+\n+import android.content.Context;\n+import android.content.Intent;\n+import android.os.Bundle;\n+import android.support.v4.app.FragmentActivity;\n+import android.support.v4.app.FragmentManager;\n+import android.support.v4.view.ViewPager;\n+\n+import com.annimon.stream.Objects;\n+import com.annimon.stream.Stream;\n+\n+import com.xmartlabs.scasas.criminalintent.R;\n+import com.xmartlabs.scasas.criminalintent.controller.CrimeController;\n+import com.xmartlabs.scasas.criminalintent.model.Crime;\n+\n+import java.util.List;\n+import java.util.UUID;\n+\n+import butterknife.BindView;\n+import butterknife.ButterKnife;\n+\n+/**\n+ * Created by scasas on 2/14/17.\n+ */\n+public class CrimePagerActivity extends FragmentActivity {\n+  private static final String EXTRA_CRIME_ID = CrimePagerActivity.class.getCanonicalName() + \".crime_id\";\n+\n+  @BindView(R.id.activity_crime_pager_view_pager)\n+  ViewPager viewPager;\n+\n+  private List<Crime> crimes = CrimeController.getInstance().getCrimes();\n+\n+  public static Intent newIntent(Context packageContext, UUID crimeId) {\n+    Intent intent = new Intent(packageContext, CrimePagerActivity.class);","path":"app/src/main/java/com/xmartlabs/scasas/criminalintent/ui/crime/simple/CrimePagerActivity.java","position":35,"original_position":35,"commit_id":"0711255ac5ebf6390388a00de05cde36c49f6cf6","original_commit_id":"0711255ac5ebf6390388a00de05cde36c49f6cf6","user":{"login":"matir91","id":8472881,"avatar_url":"https://avatars.githubusercontent.com/u/8472881?v=3","gravatar_id":"","url":"https://api.github.com/users/matir91","html_url":"https://github.com/matir91","followers_url":"https://api.github.com/users/matir91/followers","following_url":"https://api.github.com/users/matir91/following{/other_user}","gists_url":"https://api.github.com/users/matir91/gists{/gist_id}","starred_url":"https://api.github.com/users/matir91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matir91/subscriptions","organizations_url":"https://api.github.com/users/matir91/orgs","repos_url":"https://api.github.com/users/matir91/repos","events_url":"https://api.github.com/users/matir91/events{/privacy}","received_events_url":"https://api.github.com/users/matir91/received_events","type":"User","site_admin":false},"body":"you can chain the calls","created_at":"2017-02-15T17:46:32Z","updated_at":"2017-02-15T17:49:59Z","html_url":"https://github.com/chacaa/CriminalIntent/pull/5#discussion_r101338196","pull_request_url":"https://api.github.com/repos/chacaa/CriminalIntent/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/chacaa/CriminalIntent/pulls/comments/101338196"},"html":{"href":"https://github.com/chacaa/CriminalIntent/pull/5#discussion_r101338196"},"pull_request":{"href":"https://api.github.com/repos/chacaa/CriminalIntent/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/chacaa/CriminalIntent/pulls/5","id":106361089,"html_url":"https://github.com/chacaa/CriminalIntent/pull/5","diff_url":"https://github.com/chacaa/CriminalIntent/pull/5.diff","patch_url":"https://github.com/chacaa/CriminalIntent/pull/5.patch","issue_url":"https://api.github.com/repos/chacaa/CriminalIntent/issues/5","number":5,"state":"open","locked":false,"title":"Swapping between crimes","user":{"login":"chacaa","id":25156354,"avatar_url":"https://avatars.githubusercontent.com/u/25156354?v=3","gravatar_id":"","url":"https://api.github.com/users/chacaa","html_url":"https://github.com/chacaa","followers_url":"https://api.github.com/users/chacaa/followers","following_url":"https://api.github.com/users/chacaa/following{/other_user}","gists_url":"https://api.github.com/users/chacaa/gists{/gist_id}","starred_url":"https://api.github.com/users/chacaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chacaa/subscriptions","organizations_url":"https://api.github.com/users/chacaa/orgs","repos_url":"https://api.github.com/users/chacaa/repos","events_url":"https://api.github.com/users/chacaa/events{/privacy}","received_events_url":"https://api.github.com/users/chacaa/received_events","type":"User","site_admin":false},"body":"Adds the possibility of swap between crimes when you're looking at a specific crime (after you tap on a crime of the list).\r\n\r\n### Related Trello cards:\r\n* [[AP - Chapter 11] Using ViewPager](https://trello.com/c/tCbfvQEr)\r\n\r\n### Additional Info:\r\n* It is possible by using ViewPager.\r\n* Also the code has been changed to try to match with the team's code preferences.\r\n\r\n### UI preview:\r\n![UI](http://g.recordit.co/PDWqSk1cMl.gif)\r\n\r\n/cc @xmartlabs/android","created_at":"2017-02-15T17:36:15Z","updated_at":"2017-02-15T17:49:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d2bac9e8f2f2c8d94dfd5711a1f03ab98e31f12e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/chacaa/CriminalIntent/pulls/5/commits","review_comments_url":"https://api.github.com/repos/chacaa/CriminalIntent/pulls/5/comments","review_comment_url":"https://api.github.com/repos/chacaa/CriminalIntent/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chacaa/CriminalIntent/issues/5/comments","statuses_url":"https://api.github.com/repos/chacaa/CriminalIntent/statuses/0711255ac5ebf6390388a00de05cde36c49f6cf6","head":{"label":"chacaa:feature/using-viewpager","ref":"feature/using-viewpager","sha":"0711255ac5ebf6390388a00de05cde36c49f6cf6","user":{"login":"chacaa","id":25156354,"avatar_url":"https://avatars.githubusercontent.com/u/25156354?v=3","gravatar_id":"","url":"https://api.github.com/users/chacaa","html_url":"https://github.com/chacaa","followers_url":"https://api.github.com/users/chacaa/followers","following_url":"https://api.github.com/users/chacaa/following{/other_user}","gists_url":"https://api.github.com/users/chacaa/gists{/gist_id}","starred_url":"https://api.github.com/users/chacaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chacaa/subscriptions","organizations_url":"https://api.github.com/users/chacaa/orgs","repos_url":"https://api.github.com/users/chacaa/repos","events_url":"https://api.github.com/users/chacaa/events{/privacy}","received_events_url":"https://api.github.com/users/chacaa/received_events","type":"User","site_admin":false},"repo":{"id":80761149,"name":"CriminalIntent","full_name":"chacaa/CriminalIntent","owner":{"login":"chacaa","id":25156354,"avatar_url":"https://avatars.githubusercontent.com/u/25156354?v=3","gravatar_id":"","url":"https://api.github.com/users/chacaa","html_url":"https://github.com/chacaa","followers_url":"https://api.github.com/users/chacaa/followers","following_url":"https://api.github.com/users/chacaa/following{/other_user}","gists_url":"https://api.github.com/users/chacaa/gists{/gist_id}","starred_url":"https://api.github.com/users/chacaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chacaa/subscriptions","organizations_url":"https://api.github.com/users/chacaa/orgs","repos_url":"https://api.github.com/users/chacaa/repos","events_url":"https://api.github.com/users/chacaa/events{/privacy}","received_events_url":"https://api.github.com/users/chacaa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chacaa/CriminalIntent","description":null,"fork":false,"url":"https://api.github.com/repos/chacaa/CriminalIntent","forks_url":"https://api.github.com/repos/chacaa/CriminalIntent/forks","keys_url":"https://api.github.com/repos/chacaa/CriminalIntent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chacaa/CriminalIntent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chacaa/CriminalIntent/teams","hooks_url":"https://api.github.com/repos/chacaa/CriminalIntent/hooks","issue_events_url":"https://api.github.com/repos/chacaa/CriminalIntent/issues/events{/number}","events_url":"https://api.github.com/repos/chacaa/CriminalIntent/events","assignees_url":"https://api.github.com/repos/chacaa/CriminalIntent/assignees{/user}","branches_url":"https://api.github.com/repos/chacaa/CriminalIntent/branches{/branch}","tags_url":"https://api.github.com/repos/chacaa/CriminalIntent/tags","blobs_url":"https://api.github.com/repos/chacaa/CriminalIntent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chacaa/CriminalIntent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chacaa/CriminalIntent/git/refs{/sha}","trees_url":"https://api.github.com/repos/chacaa/CriminalIntent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chacaa/CriminalIntent/statuses/{sha}","languages_url":"https://api.github.com/repos/chacaa/CriminalIntent/languages","stargazers_url":"https://api.github.com/repos/chacaa/CriminalIntent/stargazers","contributors_url":"https://api.github.com/repos/chacaa/CriminalIntent/contributors","subscribers_url":"https://api.github.com/repos/chacaa/CriminalIntent/subscribers","subscription_url":"https://api.github.com/repos/chacaa/CriminalIntent/subscription","commits_url":"https://api.github.com/repos/chacaa/CriminalIntent/commits{/sha}","git_commits_url":"https://api.github.com/repos/chacaa/CriminalIntent/git/commits{/sha}","comments_url":"https://api.github.com/repos/chacaa/CriminalIntent/comments{/number}","issue_comment_url":"https://api.github.com/repos/chacaa/CriminalIntent/issues/comments{/number}","contents_url":"https://api.github.com/repos/chacaa/CriminalIntent/contents/{+path}","compare_url":"https://api.github.com/repos/chacaa/CriminalIntent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chacaa/CriminalIntent/merges","archive_url":"https://api.github.com/repos/chacaa/CriminalIntent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chacaa/CriminalIntent/downloads","issues_url":"https://api.github.com/repos/chacaa/CriminalIntent/issues{/number}","pulls_url":"https://api.github.com/repos/chacaa/CriminalIntent/pulls{/number}","milestones_url":"https://api.github.com/repos/chacaa/CriminalIntent/milestones{/number}","notifications_url":"https://api.github.com/repos/chacaa/CriminalIntent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chacaa/CriminalIntent/labels{/name}","releases_url":"https://api.github.com/repos/chacaa/CriminalIntent/releases{/id}","deployments_url":"https://api.github.com/repos/chacaa/CriminalIntent/deployments","created_at":"2017-02-02T19:34:45Z","updated_at":"2017-02-06T20:13:00Z","pushed_at":"2017-02-15T17:36:16Z","git_url":"git://github.com/chacaa/CriminalIntent.git","ssh_url":"git@github.com:chacaa/CriminalIntent.git","clone_url":"https://github.com/chacaa/CriminalIntent.git","svn_url":"https://github.com/chacaa/CriminalIntent","homepage":null,"size":98,"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":"chacaa:master","ref":"master","sha":"19c1d81102df8a8050a02543218390d65120a31b","user":{"login":"chacaa","id":25156354,"avatar_url":"https://avatars.githubusercontent.com/u/25156354?v=3","gravatar_id":"","url":"https://api.github.com/users/chacaa","html_url":"https://github.com/chacaa","followers_url":"https://api.github.com/users/chacaa/followers","following_url":"https://api.github.com/users/chacaa/following{/other_user}","gists_url":"https://api.github.com/users/chacaa/gists{/gist_id}","starred_url":"https://api.github.com/users/chacaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chacaa/subscriptions","organizations_url":"https://api.github.com/users/chacaa/orgs","repos_url":"https://api.github.com/users/chacaa/repos","events_url":"https://api.github.com/users/chacaa/events{/privacy}","received_events_url":"https://api.github.com/users/chacaa/received_events","type":"User","site_admin":false},"repo":{"id":80761149,"name":"CriminalIntent","full_name":"chacaa/CriminalIntent","owner":{"login":"chacaa","id":25156354,"avatar_url":"https://avatars.githubusercontent.com/u/25156354?v=3","gravatar_id":"","url":"https://api.github.com/users/chacaa","html_url":"https://github.com/chacaa","followers_url":"https://api.github.com/users/chacaa/followers","following_url":"https://api.github.com/users/chacaa/following{/other_user}","gists_url":"https://api.github.com/users/chacaa/gists{/gist_id}","starred_url":"https://api.github.com/users/chacaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chacaa/subscriptions","organizations_url":"https://api.github.com/users/chacaa/orgs","repos_url":"https://api.github.com/users/chacaa/repos","events_url":"https://api.github.com/users/chacaa/events{/privacy}","received_events_url":"https://api.github.com/users/chacaa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chacaa/CriminalIntent","description":null,"fork":false,"url":"https://api.github.com/repos/chacaa/CriminalIntent","forks_url":"https://api.github.com/repos/chacaa/CriminalIntent/forks","keys_url":"https://api.github.com/repos/chacaa/CriminalIntent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chacaa/CriminalIntent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chacaa/CriminalIntent/teams","hooks_url":"https://api.github.com/repos/chacaa/CriminalIntent/hooks","issue_events_url":"https://api.github.com/repos/chacaa/CriminalIntent/issues/events{/number}","events_url":"https://api.github.com/repos/chacaa/CriminalIntent/events","assignees_url":"https://api.github.com/repos/chacaa/CriminalIntent/assignees{/user}","branches_url":"https://api.github.com/repos/chacaa/CriminalIntent/branches{/branch}","tags_url":"https://api.github.com/repos/chacaa/CriminalIntent/tags","blobs_url":"https://api.github.com/repos/chacaa/CriminalIntent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chacaa/CriminalIntent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chacaa/CriminalIntent/git/refs{/sha}","trees_url":"https://api.github.com/repos/chacaa/CriminalIntent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chacaa/CriminalIntent/statuses/{sha}","languages_url":"https://api.github.com/repos/chacaa/CriminalIntent/languages","stargazers_url":"https://api.github.com/repos/chacaa/CriminalIntent/stargazers","contributors_url":"https://api.github.com/repos/chacaa/CriminalIntent/contributors","subscribers_url":"https://api.github.com/repos/chacaa/CriminalIntent/subscribers","subscription_url":"https://api.github.com/repos/chacaa/CriminalIntent/subscription","commits_url":"https://api.github.com/repos/chacaa/CriminalIntent/commits{/sha}","git_commits_url":"https://api.github.com/repos/chacaa/CriminalIntent/git/commits{/sha}","comments_url":"https://api.github.com/repos/chacaa/CriminalIntent/comments{/number}","issue_comment_url":"https://api.github.com/repos/chacaa/CriminalIntent/issues/comments{/number}","contents_url":"https://api.github.com/repos/chacaa/CriminalIntent/contents/{+path}","compare_url":"https://api.github.com/repos/chacaa/CriminalIntent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chacaa/CriminalIntent/merges","archive_url":"https://api.github.com/repos/chacaa/CriminalIntent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chacaa/CriminalIntent/downloads","issues_url":"https://api.github.com/repos/chacaa/CriminalIntent/issues{/number}","pulls_url":"https://api.github.com/repos/chacaa/CriminalIntent/pulls{/number}","milestones_url":"https://api.github.com/repos/chacaa/CriminalIntent/milestones{/number}","notifications_url":"https://api.github.com/repos/chacaa/CriminalIntent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chacaa/CriminalIntent/labels{/name}","releases_url":"https://api.github.com/repos/chacaa/CriminalIntent/releases{/id}","deployments_url":"https://api.github.com/repos/chacaa/CriminalIntent/deployments","created_at":"2017-02-02T19:34:45Z","updated_at":"2017-02-06T20:13:00Z","pushed_at":"2017-02-15T17:36:16Z","git_url":"git://github.com/chacaa/CriminalIntent.git","ssh_url":"git@github.com:chacaa/CriminalIntent.git","clone_url":"https://github.com/chacaa/CriminalIntent.git","svn_url":"https://github.com/chacaa/CriminalIntent","homepage":null,"size":98,"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/chacaa/CriminalIntent/pulls/5"},"html":{"href":"https://github.com/chacaa/CriminalIntent/pull/5"},"issue":{"href":"https://api.github.com/repos/chacaa/CriminalIntent/issues/5"},"comments":{"href":"https://api.github.com/repos/chacaa/CriminalIntent/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/chacaa/CriminalIntent/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/chacaa/CriminalIntent/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chacaa/CriminalIntent/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/chacaa/CriminalIntent/statuses/0711255ac5ebf6390388a00de05cde36c49f6cf6"}}}}
{"actor":{"display_login":"matir91"}}