{"action":"created","comment":{"url":"https://api.github.com/repos/FelipeRsN/MobileApp/pulls/comments/216849840","pull_request_review_id":154429260,"id":216849840,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNjg0OTg0MA==","diff_hunk":"@@ -0,0 +1,34 @@\n+package com.arctouch.codechallenge.api\n+\n+import android.annotation.SuppressLint\n+import com.arctouch.codechallenge.model.GenreResponse\n+import com.arctouch.codechallenge.model.UpcomingMoviesResponse\n+import io.reactivex.android.schedulers.AndroidSchedulers\n+import io.reactivex.schedulers.Schedulers\n+\n+//repository to centralize data request\n+class MoviesRepository (private val api: TmdbApi): MoviesDataSource {\n+    @SuppressLint(\"CheckResult\")\n+    override fun getMovieList(page: Long, success: (UpcomingMoviesResponse) -> Unit, failure: (Throwable) -> Unit) {\n+        api.upcomingMovies(TmdbApi.API_KEY, TmdbApi.DEFAULT_LANGUAGE, page, TmdbApi.DEFAULT_REGION)\n+                .subscribeOn(Schedulers.io())\n+                .observeOn(AndroidSchedulers.mainThread())\n+                .subscribe ({","path":"app/src/main/java/com/arctouch/codechallenge/api/MoviesRepository.kt","position":16,"original_position":16,"commit_id":"f603fdcbf3112711c822bdbf4d7fd2375e448309","original_commit_id":"f603fdcbf3112711c822bdbf4d7fd2375e448309","user":{"login":"FelipeRsN","id":11700268,"node_id":"MDQ6VXNlcjExNzAwMjY4","avatar_url":"https://avatars3.githubusercontent.com/u/11700268?v=4","gravatar_id":"","url":"https://api.github.com/users/FelipeRsN","html_url":"https://github.com/FelipeRsN","followers_url":"https://api.github.com/users/FelipeRsN/followers","following_url":"https://api.github.com/users/FelipeRsN/following{/other_user}","gists_url":"https://api.github.com/users/FelipeRsN/gists{/gist_id}","starred_url":"https://api.github.com/users/FelipeRsN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FelipeRsN/subscriptions","organizations_url":"https://api.github.com/users/FelipeRsN/orgs","repos_url":"https://api.github.com/users/FelipeRsN/repos","events_url":"https://api.github.com/users/FelipeRsN/events{/privacy}","received_events_url":"https://api.github.com/users/FelipeRsN/received_events","type":"User","site_admin":false},"body":"I think in this project i don't need or don't imagine a need to keep this object after the use, if that's your question, sorry if i don't understand.","created_at":"2018-09-11T22:55:57Z","updated_at":"2018-09-11T22:55:57Z","html_url":"https://github.com/FelipeRsN/MobileApp/pull/1#discussion_r216849840","pull_request_url":"https://api.github.com/repos/FelipeRsN/MobileApp/pulls/1","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/FelipeRsN/MobileApp/pulls/comments/216849840"},"html":{"href":"https://github.com/FelipeRsN/MobileApp/pull/1#discussion_r216849840"},"pull_request":{"href":"https://api.github.com/repos/FelipeRsN/MobileApp/pulls/1"}},"in_reply_to_id":216785423},"pull_request":{"url":"https://api.github.com/repos/FelipeRsN/MobileApp/pulls/1","id":214094590,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE0MDk0NTkw","html_url":"https://github.com/FelipeRsN/MobileApp/pull/1","diff_url":"https://github.com/FelipeRsN/MobileApp/pull/1.diff","patch_url":"https://github.com/FelipeRsN/MobileApp/pull/1.patch","issue_url":"https://api.github.com/repos/FelipeRsN/MobileApp/issues/1","number":1,"state":"open","locked":false,"title":"Dev","user":{"login":"FelipeRsN","id":11700268,"node_id":"MDQ6VXNlcjExNzAwMjY4","avatar_url":"https://avatars3.githubusercontent.com/u/11700268?v=4","gravatar_id":"","url":"https://api.github.com/users/FelipeRsN","html_url":"https://github.com/FelipeRsN","followers_url":"https://api.github.com/users/FelipeRsN/followers","following_url":"https://api.github.com/users/FelipeRsN/following{/other_user}","gists_url":"https://api.github.com/users/FelipeRsN/gists{/gist_id}","starred_url":"https://api.github.com/users/FelipeRsN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FelipeRsN/subscriptions","organizations_url":"https://api.github.com/users/FelipeRsN/orgs","repos_url":"https://api.github.com/users/FelipeRsN/repos","events_url":"https://api.github.com/users/FelipeRsN/events{/privacy}","received_events_url":"https://api.github.com/users/FelipeRsN/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-08T13:07:05Z","updated_at":"2018-09-11T22:55:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"43bfe87f8d4f22788322ce7930cbfa66162db14f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/FelipeRsN/MobileApp/pulls/1/commits","review_comments_url":"https://api.github.com/repos/FelipeRsN/MobileApp/pulls/1/comments","review_comment_url":"https://api.github.com/repos/FelipeRsN/MobileApp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FelipeRsN/MobileApp/issues/1/comments","statuses_url":"https://api.github.com/repos/FelipeRsN/MobileApp/statuses/f603fdcbf3112711c822bdbf4d7fd2375e448309","head":{"label":"FelipeRsN:dev","ref":"dev","sha":"f603fdcbf3112711c822bdbf4d7fd2375e448309","user":{"login":"FelipeRsN","id":11700268,"node_id":"MDQ6VXNlcjExNzAwMjY4","avatar_url":"https://avatars3.githubusercontent.com/u/11700268?v=4","gravatar_id":"","url":"https://api.github.com/users/FelipeRsN","html_url":"https://github.com/FelipeRsN","followers_url":"https://api.github.com/users/FelipeRsN/followers","following_url":"https://api.github.com/users/FelipeRsN/following{/other_user}","gists_url":"https://api.github.com/users/FelipeRsN/gists{/gist_id}","starred_url":"https://api.github.com/users/FelipeRsN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FelipeRsN/subscriptions","organizations_url":"https://api.github.com/users/FelipeRsN/orgs","repos_url":"https://api.github.com/users/FelipeRsN/repos","events_url":"https://api.github.com/users/FelipeRsN/events{/privacy}","received_events_url":"https://api.github.com/users/FelipeRsN/received_events","type":"User","site_admin":false},"repo":{"id":147683941,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc2ODM5NDE=","name":"MobileApp","full_name":"FelipeRsN/MobileApp","owner":{"login":"FelipeRsN","id":11700268,"node_id":"MDQ6VXNlcjExNzAwMjY4","avatar_url":"https://avatars3.githubusercontent.com/u/11700268?v=4","gravatar_id":"","url":"https://api.github.com/users/FelipeRsN","html_url":"https://github.com/FelipeRsN","followers_url":"https://api.github.com/users/FelipeRsN/followers","following_url":"https://api.github.com/users/FelipeRsN/following{/other_user}","gists_url":"https://api.github.com/users/FelipeRsN/gists{/gist_id}","starred_url":"https://api.github.com/users/FelipeRsN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FelipeRsN/subscriptions","organizations_url":"https://api.github.com/users/FelipeRsN/orgs","repos_url":"https://api.github.com/users/FelipeRsN/repos","events_url":"https://api.github.com/users/FelipeRsN/events{/privacy}","received_events_url":"https://api.github.com/users/FelipeRsN/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/FelipeRsN/MobileApp","description":null,"fork":false,"url":"https://api.github.com/repos/FelipeRsN/MobileApp","forks_url":"https://api.github.com/repos/FelipeRsN/MobileApp/forks","keys_url":"https://api.github.com/repos/FelipeRsN/MobileApp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FelipeRsN/MobileApp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FelipeRsN/MobileApp/teams","hooks_url":"https://api.github.com/repos/FelipeRsN/MobileApp/hooks","issue_events_url":"https://api.github.com/repos/FelipeRsN/MobileApp/issues/events{/number}","events_url":"https://api.github.com/repos/FelipeRsN/MobileApp/events","assignees_url":"https://api.github.com/repos/FelipeRsN/MobileApp/assignees{/user}","branches_url":"https://api.github.com/repos/FelipeRsN/MobileApp/branches{/branch}","tags_url":"https://api.github.com/repos/FelipeRsN/MobileApp/tags","blobs_url":"https://api.github.com/repos/FelipeRsN/MobileApp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FelipeRsN/MobileApp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FelipeRsN/MobileApp/git/refs{/sha}","trees_url":"https://api.github.com/repos/FelipeRsN/MobileApp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FelipeRsN/MobileApp/statuses/{sha}","languages_url":"https://api.github.com/repos/FelipeRsN/MobileApp/languages","stargazers_url":"https://api.github.com/repos/FelipeRsN/MobileApp/stargazers","contributors_url":"https://api.github.com/repos/FelipeRsN/MobileApp/contributors","subscribers_url":"https://api.github.com/repos/FelipeRsN/MobileApp/subscribers","subscription_url":"https://api.github.com/repos/FelipeRsN/MobileApp/subscription","commits_url":"https://api.github.com/repos/FelipeRsN/MobileApp/commits{/sha}","git_commits_url":"https://api.github.com/repos/FelipeRsN/MobileApp/git/commits{/sha}","comments_url":"https://api.github.com/repos/FelipeRsN/MobileApp/comments{/number}","issue_comment_url":"https://api.github.com/repos/FelipeRsN/MobileApp/issues/comments{/number}","contents_url":"https://api.github.com/repos/FelipeRsN/MobileApp/contents/{+path}","compare_url":"https://api.github.com/repos/FelipeRsN/MobileApp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FelipeRsN/MobileApp/merges","archive_url":"https://api.github.com/repos/FelipeRsN/MobileApp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FelipeRsN/MobileApp/downloads","issues_url":"https://api.github.com/repos/FelipeRsN/MobileApp/issues{/number}","pulls_url":"https://api.github.com/repos/FelipeRsN/MobileApp/pulls{/number}","milestones_url":"https://api.github.com/repos/FelipeRsN/MobileApp/milestones{/number}","notifications_url":"https://api.github.com/repos/FelipeRsN/MobileApp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FelipeRsN/MobileApp/labels{/name}","releases_url":"https://api.github.com/repos/FelipeRsN/MobileApp/releases{/id}","deployments_url":"https://api.github.com/repos/FelipeRsN/MobileApp/deployments","created_at":"2018-09-06T14:11:47Z","updated_at":"2018-09-06T14:14:52Z","pushed_at":"2018-09-08T13:07:05Z","git_url":"git://github.com/FelipeRsN/MobileApp.git","ssh_url":"git@github.com:FelipeRsN/MobileApp.git","clone_url":"https://github.com/FelipeRsN/MobileApp.git","svn_url":"https://github.com/FelipeRsN/MobileApp","homepage":null,"size":179,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"FelipeRsN:master","ref":"master","sha":"f96ae2529ed33729dfe21a1b6b38b976bb29e9ea","user":{"login":"FelipeRsN","id":11700268,"node_id":"MDQ6VXNlcjExNzAwMjY4","avatar_url":"https://avatars3.githubusercontent.com/u/11700268?v=4","gravatar_id":"","url":"https://api.github.com/users/FelipeRsN","html_url":"https://github.com/FelipeRsN","followers_url":"https://api.github.com/users/FelipeRsN/followers","following_url":"https://api.github.com/users/FelipeRsN/following{/other_user}","gists_url":"https://api.github.com/users/FelipeRsN/gists{/gist_id}","starred_url":"https://api.github.com/users/FelipeRsN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FelipeRsN/subscriptions","organizations_url":"https://api.github.com/users/FelipeRsN/orgs","repos_url":"https://api.github.com/users/FelipeRsN/repos","events_url":"https://api.github.com/users/FelipeRsN/events{/privacy}","received_events_url":"https://api.github.com/users/FelipeRsN/received_events","type":"User","site_admin":false},"repo":{"id":147683941,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc2ODM5NDE=","name":"MobileApp","full_name":"FelipeRsN/MobileApp","owner":{"login":"FelipeRsN","id":11700268,"node_id":"MDQ6VXNlcjExNzAwMjY4","avatar_url":"https://avatars3.githubusercontent.com/u/11700268?v=4","gravatar_id":"","url":"https://api.github.com/users/FelipeRsN","html_url":"https://github.com/FelipeRsN","followers_url":"https://api.github.com/users/FelipeRsN/followers","following_url":"https://api.github.com/users/FelipeRsN/following{/other_user}","gists_url":"https://api.github.com/users/FelipeRsN/gists{/gist_id}","starred_url":"https://api.github.com/users/FelipeRsN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FelipeRsN/subscriptions","organizations_url":"https://api.github.com/users/FelipeRsN/orgs","repos_url":"https://api.github.com/users/FelipeRsN/repos","events_url":"https://api.github.com/users/FelipeRsN/events{/privacy}","received_events_url":"https://api.github.com/users/FelipeRsN/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/FelipeRsN/MobileApp","description":null,"fork":false,"url":"https://api.github.com/repos/FelipeRsN/MobileApp","forks_url":"https://api.github.com/repos/FelipeRsN/MobileApp/forks","keys_url":"https://api.github.com/repos/FelipeRsN/MobileApp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FelipeRsN/MobileApp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FelipeRsN/MobileApp/teams","hooks_url":"https://api.github.com/repos/FelipeRsN/MobileApp/hooks","issue_events_url":"https://api.github.com/repos/FelipeRsN/MobileApp/issues/events{/number}","events_url":"https://api.github.com/repos/FelipeRsN/MobileApp/events","assignees_url":"https://api.github.com/repos/FelipeRsN/MobileApp/assignees{/user}","branches_url":"https://api.github.com/repos/FelipeRsN/MobileApp/branches{/branch}","tags_url":"https://api.github.com/repos/FelipeRsN/MobileApp/tags","blobs_url":"https://api.github.com/repos/FelipeRsN/MobileApp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FelipeRsN/MobileApp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FelipeRsN/MobileApp/git/refs{/sha}","trees_url":"https://api.github.com/repos/FelipeRsN/MobileApp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FelipeRsN/MobileApp/statuses/{sha}","languages_url":"https://api.github.com/repos/FelipeRsN/MobileApp/languages","stargazers_url":"https://api.github.com/repos/FelipeRsN/MobileApp/stargazers","contributors_url":"https://api.github.com/repos/FelipeRsN/MobileApp/contributors","subscribers_url":"https://api.github.com/repos/FelipeRsN/MobileApp/subscribers","subscription_url":"https://api.github.com/repos/FelipeRsN/MobileApp/subscription","commits_url":"https://api.github.com/repos/FelipeRsN/MobileApp/commits{/sha}","git_commits_url":"https://api.github.com/repos/FelipeRsN/MobileApp/git/commits{/sha}","comments_url":"https://api.github.com/repos/FelipeRsN/MobileApp/comments{/number}","issue_comment_url":"https://api.github.com/repos/FelipeRsN/MobileApp/issues/comments{/number}","contents_url":"https://api.github.com/repos/FelipeRsN/MobileApp/contents/{+path}","compare_url":"https://api.github.com/repos/FelipeRsN/MobileApp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FelipeRsN/MobileApp/merges","archive_url":"https://api.github.com/repos/FelipeRsN/MobileApp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FelipeRsN/MobileApp/downloads","issues_url":"https://api.github.com/repos/FelipeRsN/MobileApp/issues{/number}","pulls_url":"https://api.github.com/repos/FelipeRsN/MobileApp/pulls{/number}","milestones_url":"https://api.github.com/repos/FelipeRsN/MobileApp/milestones{/number}","notifications_url":"https://api.github.com/repos/FelipeRsN/MobileApp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FelipeRsN/MobileApp/labels{/name}","releases_url":"https://api.github.com/repos/FelipeRsN/MobileApp/releases{/id}","deployments_url":"https://api.github.com/repos/FelipeRsN/MobileApp/deployments","created_at":"2018-09-06T14:11:47Z","updated_at":"2018-09-06T14:14:52Z","pushed_at":"2018-09-08T13:07:05Z","git_url":"git://github.com/FelipeRsN/MobileApp.git","ssh_url":"git@github.com:FelipeRsN/MobileApp.git","clone_url":"https://github.com/FelipeRsN/MobileApp.git","svn_url":"https://github.com/FelipeRsN/MobileApp","homepage":null,"size":179,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FelipeRsN/MobileApp/pulls/1"},"html":{"href":"https://github.com/FelipeRsN/MobileApp/pull/1"},"issue":{"href":"https://api.github.com/repos/FelipeRsN/MobileApp/issues/1"},"comments":{"href":"https://api.github.com/repos/FelipeRsN/MobileApp/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/FelipeRsN/MobileApp/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/FelipeRsN/MobileApp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FelipeRsN/MobileApp/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/FelipeRsN/MobileApp/statuses/f603fdcbf3112711c822bdbf4d7fd2375e448309"}},"author_association":"OWNER"}}
{"actor":{"display_login":"FelipeRsN"}}