{"action":"created","comment":{"url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/pulls/comments/290700573","pull_request_review_id":245957857,"id":290700573,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI5MDcwMDU3Mw==","diff_hunk":"@@ -0,0 +1,54 @@\n+package com.arctouch.codechallenge.detail\n+\n+import android.os.Bundle\n+import android.support.v7.app.AppCompatActivity\n+import android.widget.ImageView\n+import android.widget.TextView\n+import com.arctouch.codechallenge.R\n+import com.arctouch.codechallenge.model.Movie\n+import com.arctouch.codechallenge.util.MovieImageUrlBuilder\n+import com.bumptech.glide.Glide\n+import com.bumptech.glide.request.RequestOptions\n+\n+\n+class DetailMovieActivity : AppCompatActivity() {\n+\n+    companion object {\n+        const val MOVIE_DETAIL: String = \"MOVIE_DETAIL\"\n+    }\n+\n+    lateinit var movie: Movie\n+\n+    override fun onCreate(savedInstanceState: Bundle?) {\n+        super.onCreate(savedInstanceState)\n+        setContentView(R.layout.activity_detail_movie)\n+        movie = intent.extras.get(MOVIE_DETAIL) as Movie\n+        supportActionBar?.setDisplayHomeAsUpEnabled(true)\n+        initializeViews()\n+    }\n+\n+    private fun initializeViews() {\n+        findViewById<TextView>(R.id.detail_title_text).text = movie.title\n+        findViewById<TextView>(R.id.detail_genres_text).text = movie.genres?.joinToString(separator = \", \") { it.name }\n+        findViewById<TextView>(R.id.detail_overview_text).text = movie.overview\n+        findViewById<TextView>(R.id.detail_release_text).text = movie.releaseDate\n+\n+        var posterImage = findViewById<ImageView>(R.id.detail_poster_image)","path":"app/src/main/java/com/arctouch/codechallenge/detail/DetailMovieActivity.kt","position":36,"original_position":36,"commit_id":"3b8d9e2186b40452a77c1930b9e87fd368ed1a95","original_commit_id":"3b8d9e2186b40452a77c1930b9e87fd368ed1a95","user":{"login":"Coesta","id":5722213,"node_id":"MDQ6VXNlcjU3MjIyMTM=","avatar_url":"https://avatars3.githubusercontent.com/u/5722213?v=4","gravatar_id":"","url":"https://api.github.com/users/Coesta","html_url":"https://github.com/Coesta","followers_url":"https://api.github.com/users/Coesta/followers","following_url":"https://api.github.com/users/Coesta/following{/other_user}","gists_url":"https://api.github.com/users/Coesta/gists{/gist_id}","starred_url":"https://api.github.com/users/Coesta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Coesta/subscriptions","organizations_url":"https://api.github.com/users/Coesta/orgs","repos_url":"https://api.github.com/users/Coesta/repos","events_url":"https://api.github.com/users/Coesta/events{/privacy}","received_events_url":"https://api.github.com/users/Coesta/received_events","type":"User","site_admin":false},"body":"There isn't reason for use `var` here. The better option is using the read-only `val` keyword. In a good review I probaly would change it. =|","created_at":"2019-06-05T11:55:04Z","updated_at":"2019-06-05T11:55:04Z","html_url":"https://github.com/Coesta/code-challenge-android-kotlin/pull/1#discussion_r290700573","pull_request_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/pulls/1","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/pulls/comments/290700573"},"html":{"href":"https://github.com/Coesta/code-challenge-android-kotlin/pull/1#discussion_r290700573"},"pull_request":{"href":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/pulls/1"}},"in_reply_to_id":289976127},"pull_request":{"url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/pulls/1","id":284183921,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjg0MTgzOTIx","html_url":"https://github.com/Coesta/code-challenge-android-kotlin/pull/1","diff_url":"https://github.com/Coesta/code-challenge-android-kotlin/pull/1.diff","patch_url":"https://github.com/Coesta/code-challenge-android-kotlin/pull/1.patch","issue_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/issues/1","number":1,"state":"open","locked":false,"title":"Resolução de desafio","user":{"login":"Coesta","id":5722213,"node_id":"MDQ6VXNlcjU3MjIyMTM=","avatar_url":"https://avatars3.githubusercontent.com/u/5722213?v=4","gravatar_id":"","url":"https://api.github.com/users/Coesta","html_url":"https://github.com/Coesta","followers_url":"https://api.github.com/users/Coesta/followers","following_url":"https://api.github.com/users/Coesta/following{/other_user}","gists_url":"https://api.github.com/users/Coesta/gists{/gist_id}","starred_url":"https://api.github.com/users/Coesta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Coesta/subscriptions","organizations_url":"https://api.github.com/users/Coesta/orgs","repos_url":"https://api.github.com/users/Coesta/repos","events_url":"https://api.github.com/users/Coesta/events{/privacy}","received_events_url":"https://api.github.com/users/Coesta/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-05-31T20:30:42Z","updated_at":"2019-06-05T11:55:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cf9185aee53d87e0658ce25841e8bd89c4807cb2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/issues/1/comments","statuses_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/statuses/3b8d9e2186b40452a77c1930b9e87fd368ed1a95","head":{"label":"Coesta:development","ref":"development","sha":"3b8d9e2186b40452a77c1930b9e87fd368ed1a95","user":{"login":"Coesta","id":5722213,"node_id":"MDQ6VXNlcjU3MjIyMTM=","avatar_url":"https://avatars3.githubusercontent.com/u/5722213?v=4","gravatar_id":"","url":"https://api.github.com/users/Coesta","html_url":"https://github.com/Coesta","followers_url":"https://api.github.com/users/Coesta/followers","following_url":"https://api.github.com/users/Coesta/following{/other_user}","gists_url":"https://api.github.com/users/Coesta/gists{/gist_id}","starred_url":"https://api.github.com/users/Coesta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Coesta/subscriptions","organizations_url":"https://api.github.com/users/Coesta/orgs","repos_url":"https://api.github.com/users/Coesta/repos","events_url":"https://api.github.com/users/Coesta/events{/privacy}","received_events_url":"https://api.github.com/users/Coesta/received_events","type":"User","site_admin":false},"repo":{"id":189643400,"node_id":"MDEwOlJlcG9zaXRvcnkxODk2NDM0MDA=","name":"code-challenge-android-kotlin","full_name":"Coesta/code-challenge-android-kotlin","private":false,"owner":{"login":"Coesta","id":5722213,"node_id":"MDQ6VXNlcjU3MjIyMTM=","avatar_url":"https://avatars3.githubusercontent.com/u/5722213?v=4","gravatar_id":"","url":"https://api.github.com/users/Coesta","html_url":"https://github.com/Coesta","followers_url":"https://api.github.com/users/Coesta/followers","following_url":"https://api.github.com/users/Coesta/following{/other_user}","gists_url":"https://api.github.com/users/Coesta/gists{/gist_id}","starred_url":"https://api.github.com/users/Coesta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Coesta/subscriptions","organizations_url":"https://api.github.com/users/Coesta/orgs","repos_url":"https://api.github.com/users/Coesta/repos","events_url":"https://api.github.com/users/Coesta/events{/privacy}","received_events_url":"https://api.github.com/users/Coesta/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Coesta/code-challenge-android-kotlin","description":"Challenge for Android dev","fork":false,"url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin","forks_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/forks","keys_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/teams","hooks_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/hooks","issue_events_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/issues/events{/number}","events_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/events","assignees_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/assignees{/user}","branches_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/branches{/branch}","tags_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/tags","blobs_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/git/refs{/sha}","trees_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/statuses/{sha}","languages_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/languages","stargazers_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/stargazers","contributors_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/contributors","subscribers_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/subscribers","subscription_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/subscription","commits_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/commits{/sha}","git_commits_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/git/commits{/sha}","comments_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/comments{/number}","issue_comment_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/issues/comments{/number}","contents_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/contents/{+path}","compare_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/merges","archive_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/downloads","issues_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/issues{/number}","pulls_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/pulls{/number}","milestones_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/milestones{/number}","notifications_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/labels{/name}","releases_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/releases{/id}","deployments_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/deployments","created_at":"2019-05-31T18:52:35Z","updated_at":"2019-05-31T19:06:43Z","pushed_at":"2019-05-31T20:30:43Z","git_url":"git://github.com/Coesta/code-challenge-android-kotlin.git","ssh_url":"git@github.com:Coesta/code-challenge-android-kotlin.git","clone_url":"https://github.com/Coesta/code-challenge-android-kotlin.git","svn_url":"https://github.com/Coesta/code-challenge-android-kotlin","homepage":null,"size":222,"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,"disabled":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Coesta:master","ref":"master","sha":"c4fb57d9a238e624df97ec19fa522f7591ad3757","user":{"login":"Coesta","id":5722213,"node_id":"MDQ6VXNlcjU3MjIyMTM=","avatar_url":"https://avatars3.githubusercontent.com/u/5722213?v=4","gravatar_id":"","url":"https://api.github.com/users/Coesta","html_url":"https://github.com/Coesta","followers_url":"https://api.github.com/users/Coesta/followers","following_url":"https://api.github.com/users/Coesta/following{/other_user}","gists_url":"https://api.github.com/users/Coesta/gists{/gist_id}","starred_url":"https://api.github.com/users/Coesta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Coesta/subscriptions","organizations_url":"https://api.github.com/users/Coesta/orgs","repos_url":"https://api.github.com/users/Coesta/repos","events_url":"https://api.github.com/users/Coesta/events{/privacy}","received_events_url":"https://api.github.com/users/Coesta/received_events","type":"User","site_admin":false},"repo":{"id":189643400,"node_id":"MDEwOlJlcG9zaXRvcnkxODk2NDM0MDA=","name":"code-challenge-android-kotlin","full_name":"Coesta/code-challenge-android-kotlin","private":false,"owner":{"login":"Coesta","id":5722213,"node_id":"MDQ6VXNlcjU3MjIyMTM=","avatar_url":"https://avatars3.githubusercontent.com/u/5722213?v=4","gravatar_id":"","url":"https://api.github.com/users/Coesta","html_url":"https://github.com/Coesta","followers_url":"https://api.github.com/users/Coesta/followers","following_url":"https://api.github.com/users/Coesta/following{/other_user}","gists_url":"https://api.github.com/users/Coesta/gists{/gist_id}","starred_url":"https://api.github.com/users/Coesta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Coesta/subscriptions","organizations_url":"https://api.github.com/users/Coesta/orgs","repos_url":"https://api.github.com/users/Coesta/repos","events_url":"https://api.github.com/users/Coesta/events{/privacy}","received_events_url":"https://api.github.com/users/Coesta/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Coesta/code-challenge-android-kotlin","description":"Challenge for Android dev","fork":false,"url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin","forks_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/forks","keys_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/teams","hooks_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/hooks","issue_events_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/issues/events{/number}","events_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/events","assignees_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/assignees{/user}","branches_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/branches{/branch}","tags_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/tags","blobs_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/git/refs{/sha}","trees_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/statuses/{sha}","languages_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/languages","stargazers_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/stargazers","contributors_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/contributors","subscribers_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/subscribers","subscription_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/subscription","commits_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/commits{/sha}","git_commits_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/git/commits{/sha}","comments_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/comments{/number}","issue_comment_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/issues/comments{/number}","contents_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/contents/{+path}","compare_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/merges","archive_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/downloads","issues_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/issues{/number}","pulls_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/pulls{/number}","milestones_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/milestones{/number}","notifications_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/labels{/name}","releases_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/releases{/id}","deployments_url":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/deployments","created_at":"2019-05-31T18:52:35Z","updated_at":"2019-05-31T19:06:43Z","pushed_at":"2019-05-31T20:30:43Z","git_url":"git://github.com/Coesta/code-challenge-android-kotlin.git","ssh_url":"git@github.com:Coesta/code-challenge-android-kotlin.git","clone_url":"https://github.com/Coesta/code-challenge-android-kotlin.git","svn_url":"https://github.com/Coesta/code-challenge-android-kotlin","homepage":null,"size":222,"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,"disabled":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/Coesta/code-challenge-android-kotlin/pulls/1"},"html":{"href":"https://github.com/Coesta/code-challenge-android-kotlin/pull/1"},"issue":{"href":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/issues/1"},"comments":{"href":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Coesta/code-challenge-android-kotlin/statuses/3b8d9e2186b40452a77c1930b9e87fd368ed1a95"}},"author_association":"OWNER"}}
{"actor":{"display_login":"Coesta"}}