{"action":"created","comment":{"url":"https://api.github.com/repos/jonart/dev-intensive-2019/pulls/comments/305624714","pull_request_review_id":264543570,"id":305624714,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMwNTYyNDcxNA==","diff_hunk":"@@ -0,0 +1,24 @@\n+package ru.skillbranch.devintensive.models\n+\n+import java.util.*\n+\n+abstract class BaseMessage(\n+    val id: String,\n+    val from: User?,\n+    val chat: Chat,\n+    val isIncoming: Boolean = false,\n+    val date: Date = Date()\n+) {\n+\n+    abstract fun formatMessage():String\n+    companion object AbstractFactory{\n+        var lastId = -1\n+        fun makeMessage(from: User?,chat: Chat,date: Date = Date(), type:String=\"text\", payload:Any?,  isIncoming: Boolean = false):BaseMessage{\n+            lastId++\n+            return when(type){\n+                \"image\" -> ImageMessage(\"$lastId\",from,chat,date = date, image = payload as String,isIncoming = isIncoming)","path":"app/src/main/java/ru/skillbranch/devintensive/models/BaseMessage.kt","position":19,"original_position":19,"commit_id":"214a9ef83b8b59d4d183cfccb4fad027364e07b4","original_commit_id":"214a9ef83b8b59d4d183cfccb4fad027364e07b4","user":{"login":"jonart","id":5780263,"node_id":"MDQ6VXNlcjU3ODAyNjM=","avatar_url":"https://avatars0.githubusercontent.com/u/5780263?v=4","gravatar_id":"","url":"https://api.github.com/users/jonart","html_url":"https://github.com/jonart","followers_url":"https://api.github.com/users/jonart/followers","following_url":"https://api.github.com/users/jonart/following{/other_user}","gists_url":"https://api.github.com/users/jonart/gists{/gist_id}","starred_url":"https://api.github.com/users/jonart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonart/subscriptions","organizations_url":"https://api.github.com/users/jonart/orgs","repos_url":"https://api.github.com/users/jonart/repos","events_url":"https://api.github.com/users/jonart/events{/privacy}","received_events_url":"https://api.github.com/users/jonart/received_events","type":"User","site_admin":false},"body":"Ctrl+Alt+L ) Сделано","created_at":"2019-07-21T15:54:46Z","updated_at":"2019-07-21T15:54:46Z","html_url":"https://github.com/jonart/dev-intensive-2019/pull/1#discussion_r305624714","pull_request_url":"https://api.github.com/repos/jonart/dev-intensive-2019/pulls/1","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/jonart/dev-intensive-2019/pulls/comments/305624714"},"html":{"href":"https://github.com/jonart/dev-intensive-2019/pull/1#discussion_r305624714"},"pull_request":{"href":"https://api.github.com/repos/jonart/dev-intensive-2019/pulls/1"}},"in_reply_to_id":305587696},"pull_request":{"url":"https://api.github.com/repos/jonart/dev-intensive-2019/pulls/1","id":299578761,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjk5NTc4NzYx","html_url":"https://github.com/jonart/dev-intensive-2019/pull/1","diff_url":"https://github.com/jonart/dev-intensive-2019/pull/1.diff","patch_url":"https://github.com/jonart/dev-intensive-2019/pull/1.patch","issue_url":"https://api.github.com/repos/jonart/dev-intensive-2019/issues/1","number":1,"state":"open","locked":false,"title":"Hometask 3 Code review","user":{"login":"pashko00710","id":16614640,"node_id":"MDQ6VXNlcjE2NjE0NjQw","avatar_url":"https://avatars2.githubusercontent.com/u/16614640?v=4","gravatar_id":"","url":"https://api.github.com/users/pashko00710","html_url":"https://github.com/pashko00710","followers_url":"https://api.github.com/users/pashko00710/followers","following_url":"https://api.github.com/users/pashko00710/following{/other_user}","gists_url":"https://api.github.com/users/pashko00710/gists{/gist_id}","starred_url":"https://api.github.com/users/pashko00710/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pashko00710/subscriptions","organizations_url":"https://api.github.com/users/pashko00710/orgs","repos_url":"https://api.github.com/users/pashko00710/repos","events_url":"https://api.github.com/users/pashko00710/events{/privacy}","received_events_url":"https://api.github.com/users/pashko00710/received_events","type":"User","site_admin":false},"body":"Start pull request","created_at":"2019-07-20T17:23:26Z","updated_at":"2019-07-21T15:54:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"76715f5133e8be2d89a5c41187b74e2e346d5d28","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/jonart/dev-intensive-2019/pulls/1/commits","review_comments_url":"https://api.github.com/repos/jonart/dev-intensive-2019/pulls/1/comments","review_comment_url":"https://api.github.com/repos/jonart/dev-intensive-2019/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jonart/dev-intensive-2019/issues/1/comments","statuses_url":"https://api.github.com/repos/jonart/dev-intensive-2019/statuses/214a9ef83b8b59d4d183cfccb4fad027364e07b4","head":{"label":"jonart:hometask_3","ref":"hometask_3","sha":"214a9ef83b8b59d4d183cfccb4fad027364e07b4","user":{"login":"jonart","id":5780263,"node_id":"MDQ6VXNlcjU3ODAyNjM=","avatar_url":"https://avatars0.githubusercontent.com/u/5780263?v=4","gravatar_id":"","url":"https://api.github.com/users/jonart","html_url":"https://github.com/jonart","followers_url":"https://api.github.com/users/jonart/followers","following_url":"https://api.github.com/users/jonart/following{/other_user}","gists_url":"https://api.github.com/users/jonart/gists{/gist_id}","starred_url":"https://api.github.com/users/jonart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonart/subscriptions","organizations_url":"https://api.github.com/users/jonart/orgs","repos_url":"https://api.github.com/users/jonart/repos","events_url":"https://api.github.com/users/jonart/events{/privacy}","received_events_url":"https://api.github.com/users/jonart/received_events","type":"User","site_admin":false},"repo":{"id":192708532,"node_id":"MDEwOlJlcG9zaXRvcnkxOTI3MDg1MzI=","name":"dev-intensive-2019","full_name":"jonart/dev-intensive-2019","private":false,"owner":{"login":"jonart","id":5780263,"node_id":"MDQ6VXNlcjU3ODAyNjM=","avatar_url":"https://avatars0.githubusercontent.com/u/5780263?v=4","gravatar_id":"","url":"https://api.github.com/users/jonart","html_url":"https://github.com/jonart","followers_url":"https://api.github.com/users/jonart/followers","following_url":"https://api.github.com/users/jonart/following{/other_user}","gists_url":"https://api.github.com/users/jonart/gists{/gist_id}","starred_url":"https://api.github.com/users/jonart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonart/subscriptions","organizations_url":"https://api.github.com/users/jonart/orgs","repos_url":"https://api.github.com/users/jonart/repos","events_url":"https://api.github.com/users/jonart/events{/privacy}","received_events_url":"https://api.github.com/users/jonart/received_events","type":"User","site_admin":false},"html_url":"https://github.com/jonart/dev-intensive-2019","description":null,"fork":false,"url":"https://api.github.com/repos/jonart/dev-intensive-2019","forks_url":"https://api.github.com/repos/jonart/dev-intensive-2019/forks","keys_url":"https://api.github.com/repos/jonart/dev-intensive-2019/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jonart/dev-intensive-2019/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jonart/dev-intensive-2019/teams","hooks_url":"https://api.github.com/repos/jonart/dev-intensive-2019/hooks","issue_events_url":"https://api.github.com/repos/jonart/dev-intensive-2019/issues/events{/number}","events_url":"https://api.github.com/repos/jonart/dev-intensive-2019/events","assignees_url":"https://api.github.com/repos/jonart/dev-intensive-2019/assignees{/user}","branches_url":"https://api.github.com/repos/jonart/dev-intensive-2019/branches{/branch}","tags_url":"https://api.github.com/repos/jonart/dev-intensive-2019/tags","blobs_url":"https://api.github.com/repos/jonart/dev-intensive-2019/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jonart/dev-intensive-2019/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jonart/dev-intensive-2019/git/refs{/sha}","trees_url":"https://api.github.com/repos/jonart/dev-intensive-2019/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jonart/dev-intensive-2019/statuses/{sha}","languages_url":"https://api.github.com/repos/jonart/dev-intensive-2019/languages","stargazers_url":"https://api.github.com/repos/jonart/dev-intensive-2019/stargazers","contributors_url":"https://api.github.com/repos/jonart/dev-intensive-2019/contributors","subscribers_url":"https://api.github.com/repos/jonart/dev-intensive-2019/subscribers","subscription_url":"https://api.github.com/repos/jonart/dev-intensive-2019/subscription","commits_url":"https://api.github.com/repos/jonart/dev-intensive-2019/commits{/sha}","git_commits_url":"https://api.github.com/repos/jonart/dev-intensive-2019/git/commits{/sha}","comments_url":"https://api.github.com/repos/jonart/dev-intensive-2019/comments{/number}","issue_comment_url":"https://api.github.com/repos/jonart/dev-intensive-2019/issues/comments{/number}","contents_url":"https://api.github.com/repos/jonart/dev-intensive-2019/contents/{+path}","compare_url":"https://api.github.com/repos/jonart/dev-intensive-2019/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jonart/dev-intensive-2019/merges","archive_url":"https://api.github.com/repos/jonart/dev-intensive-2019/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jonart/dev-intensive-2019/downloads","issues_url":"https://api.github.com/repos/jonart/dev-intensive-2019/issues{/number}","pulls_url":"https://api.github.com/repos/jonart/dev-intensive-2019/pulls{/number}","milestones_url":"https://api.github.com/repos/jonart/dev-intensive-2019/milestones{/number}","notifications_url":"https://api.github.com/repos/jonart/dev-intensive-2019/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jonart/dev-intensive-2019/labels{/name}","releases_url":"https://api.github.com/repos/jonart/dev-intensive-2019/releases{/id}","deployments_url":"https://api.github.com/repos/jonart/dev-intensive-2019/deployments","created_at":"2019-06-19T10:11:16Z","updated_at":"2019-06-19T10:33:34Z","pushed_at":"2019-07-20T17:23:27Z","git_url":"git://github.com/jonart/dev-intensive-2019.git","ssh_url":"git@github.com:jonart/dev-intensive-2019.git","clone_url":"https://github.com/jonart/dev-intensive-2019.git","svn_url":"https://github.com/jonart/dev-intensive-2019","homepage":null,"size":167,"stargazers_count":0,"watchers_count":0,"language":null,"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":"hometask_1"}},"base":{"label":"jonart:hometask_1","ref":"hometask_1","sha":"e3e7693b5f1a73488b20184939493c3e6d2a76c1","user":{"login":"jonart","id":5780263,"node_id":"MDQ6VXNlcjU3ODAyNjM=","avatar_url":"https://avatars0.githubusercontent.com/u/5780263?v=4","gravatar_id":"","url":"https://api.github.com/users/jonart","html_url":"https://github.com/jonart","followers_url":"https://api.github.com/users/jonart/followers","following_url":"https://api.github.com/users/jonart/following{/other_user}","gists_url":"https://api.github.com/users/jonart/gists{/gist_id}","starred_url":"https://api.github.com/users/jonart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonart/subscriptions","organizations_url":"https://api.github.com/users/jonart/orgs","repos_url":"https://api.github.com/users/jonart/repos","events_url":"https://api.github.com/users/jonart/events{/privacy}","received_events_url":"https://api.github.com/users/jonart/received_events","type":"User","site_admin":false},"repo":{"id":192708532,"node_id":"MDEwOlJlcG9zaXRvcnkxOTI3MDg1MzI=","name":"dev-intensive-2019","full_name":"jonart/dev-intensive-2019","private":false,"owner":{"login":"jonart","id":5780263,"node_id":"MDQ6VXNlcjU3ODAyNjM=","avatar_url":"https://avatars0.githubusercontent.com/u/5780263?v=4","gravatar_id":"","url":"https://api.github.com/users/jonart","html_url":"https://github.com/jonart","followers_url":"https://api.github.com/users/jonart/followers","following_url":"https://api.github.com/users/jonart/following{/other_user}","gists_url":"https://api.github.com/users/jonart/gists{/gist_id}","starred_url":"https://api.github.com/users/jonart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonart/subscriptions","organizations_url":"https://api.github.com/users/jonart/orgs","repos_url":"https://api.github.com/users/jonart/repos","events_url":"https://api.github.com/users/jonart/events{/privacy}","received_events_url":"https://api.github.com/users/jonart/received_events","type":"User","site_admin":false},"html_url":"https://github.com/jonart/dev-intensive-2019","description":null,"fork":false,"url":"https://api.github.com/repos/jonart/dev-intensive-2019","forks_url":"https://api.github.com/repos/jonart/dev-intensive-2019/forks","keys_url":"https://api.github.com/repos/jonart/dev-intensive-2019/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jonart/dev-intensive-2019/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jonart/dev-intensive-2019/teams","hooks_url":"https://api.github.com/repos/jonart/dev-intensive-2019/hooks","issue_events_url":"https://api.github.com/repos/jonart/dev-intensive-2019/issues/events{/number}","events_url":"https://api.github.com/repos/jonart/dev-intensive-2019/events","assignees_url":"https://api.github.com/repos/jonart/dev-intensive-2019/assignees{/user}","branches_url":"https://api.github.com/repos/jonart/dev-intensive-2019/branches{/branch}","tags_url":"https://api.github.com/repos/jonart/dev-intensive-2019/tags","blobs_url":"https://api.github.com/repos/jonart/dev-intensive-2019/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jonart/dev-intensive-2019/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jonart/dev-intensive-2019/git/refs{/sha}","trees_url":"https://api.github.com/repos/jonart/dev-intensive-2019/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jonart/dev-intensive-2019/statuses/{sha}","languages_url":"https://api.github.com/repos/jonart/dev-intensive-2019/languages","stargazers_url":"https://api.github.com/repos/jonart/dev-intensive-2019/stargazers","contributors_url":"https://api.github.com/repos/jonart/dev-intensive-2019/contributors","subscribers_url":"https://api.github.com/repos/jonart/dev-intensive-2019/subscribers","subscription_url":"https://api.github.com/repos/jonart/dev-intensive-2019/subscription","commits_url":"https://api.github.com/repos/jonart/dev-intensive-2019/commits{/sha}","git_commits_url":"https://api.github.com/repos/jonart/dev-intensive-2019/git/commits{/sha}","comments_url":"https://api.github.com/repos/jonart/dev-intensive-2019/comments{/number}","issue_comment_url":"https://api.github.com/repos/jonart/dev-intensive-2019/issues/comments{/number}","contents_url":"https://api.github.com/repos/jonart/dev-intensive-2019/contents/{+path}","compare_url":"https://api.github.com/repos/jonart/dev-intensive-2019/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jonart/dev-intensive-2019/merges","archive_url":"https://api.github.com/repos/jonart/dev-intensive-2019/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jonart/dev-intensive-2019/downloads","issues_url":"https://api.github.com/repos/jonart/dev-intensive-2019/issues{/number}","pulls_url":"https://api.github.com/repos/jonart/dev-intensive-2019/pulls{/number}","milestones_url":"https://api.github.com/repos/jonart/dev-intensive-2019/milestones{/number}","notifications_url":"https://api.github.com/repos/jonart/dev-intensive-2019/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jonart/dev-intensive-2019/labels{/name}","releases_url":"https://api.github.com/repos/jonart/dev-intensive-2019/releases{/id}","deployments_url":"https://api.github.com/repos/jonart/dev-intensive-2019/deployments","created_at":"2019-06-19T10:11:16Z","updated_at":"2019-06-19T10:33:34Z","pushed_at":"2019-07-20T17:23:27Z","git_url":"git://github.com/jonart/dev-intensive-2019.git","ssh_url":"git@github.com:jonart/dev-intensive-2019.git","clone_url":"https://github.com/jonart/dev-intensive-2019.git","svn_url":"https://github.com/jonart/dev-intensive-2019","homepage":null,"size":167,"stargazers_count":0,"watchers_count":0,"language":null,"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":"hometask_1"}},"_links":{"self":{"href":"https://api.github.com/repos/jonart/dev-intensive-2019/pulls/1"},"html":{"href":"https://github.com/jonart/dev-intensive-2019/pull/1"},"issue":{"href":"https://api.github.com/repos/jonart/dev-intensive-2019/issues/1"},"comments":{"href":"https://api.github.com/repos/jonart/dev-intensive-2019/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/jonart/dev-intensive-2019/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/jonart/dev-intensive-2019/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jonart/dev-intensive-2019/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/jonart/dev-intensive-2019/statuses/214a9ef83b8b59d4d183cfccb4fad027364e07b4"}},"author_association":"NONE"}}
{"actor":{"display_login":"jonart"}}