{"action":"created","comment":{"url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/pulls/comments/240005457","pull_request_review_id":182944728,"id":240005457,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MDAwNTQ1Nw==","diff_hunk":"@@ -0,0 +1,38 @@\n+package com.dmity.androidacademy.database\n+\n+import android.content.Context\n+import androidx.room.Database\n+import androidx.room.Room\n+import androidx.room.RoomDatabase\n+import androidx.room.TypeConverters\n+import com.dmity.androidacademy.database.converter.DateConverter\n+import com.dmity.androidacademy.features.newsList.model.NewsEntity\n+\n+@Database(entities = [NewsEntity::class], version = 1)\n+@TypeConverters(DateConverter::class)\n+abstract class AppDatabase: RoomDatabase() {\n+\n+    abstract fun newsDao(): NewsDao\n+    abstract fun newsDaoAsync(): NewsDaoAsync\n+\n+    companion object {\n+\n+        private const val DB_NAME = \"news.db\"\n+\n+        var INSTANCE: AppDatabase? = null\n+\n+        fun getAppDataBase(context: Context): AppDatabase? {\n+            if (INSTANCE == null){\n+                synchronized(AppDatabase::class){\n+                    INSTANCE = Room.databaseBuilder(context.applicationContext, AppDatabase::class.java, DB_NAME).build()\n+                }\n+            }\n+            return INSTANCE\n+        }\n+\n+        fun destroyDataBase(){","path":"app/src/main/java/com/dmity/androidacademy/database/AppDatabase.kt","position":33,"original_position":33,"commit_id":"eebfa2eb0c8ff8b2ca0ebb6ce3f6a5e33d0ea0a6","original_commit_id":"eebfa2eb0c8ff8b2ca0ebb6ce3f6a5e33d0ea0a6","user":{"login":"dmersiyanov","id":29118049,"node_id":"MDQ6VXNlcjI5MTE4MDQ5","avatar_url":"https://avatars1.githubusercontent.com/u/29118049?v=4","gravatar_id":"","url":"https://api.github.com/users/dmersiyanov","html_url":"https://github.com/dmersiyanov","followers_url":"https://api.github.com/users/dmersiyanov/followers","following_url":"https://api.github.com/users/dmersiyanov/following{/other_user}","gists_url":"https://api.github.com/users/dmersiyanov/gists{/gist_id}","starred_url":"https://api.github.com/users/dmersiyanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmersiyanov/subscriptions","organizations_url":"https://api.github.com/users/dmersiyanov/orgs","repos_url":"https://api.github.com/users/dmersiyanov/repos","events_url":"https://api.github.com/users/dmersiyanov/events{/privacy}","received_events_url":"https://api.github.com/users/dmersiyanov/received_events","type":"User","site_admin":false},"body":"Нигде, сделал по примеру от Блинова","created_at":"2018-12-08T13:47:04Z","updated_at":"2018-12-08T13:47:04Z","html_url":"https://github.com/dmersiyanov/AndroidAcademy/pull/6#discussion_r240005457","pull_request_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/pulls/6","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/pulls/comments/240005457"},"html":{"href":"https://github.com/dmersiyanov/AndroidAcademy/pull/6#discussion_r240005457"},"pull_request":{"href":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/pulls/6"}},"in_reply_to_id":238056794},"pull_request":{"url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/pulls/6","id":233368992,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzMzY4OTky","html_url":"https://github.com/dmersiyanov/AndroidAcademy/pull/6","diff_url":"https://github.com/dmersiyanov/AndroidAcademy/pull/6.diff","patch_url":"https://github.com/dmersiyanov/AndroidAcademy/pull/6.patch","issue_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/issues/6","number":6,"state":"open","locked":false,"title":"Exercise 6 persistency","user":{"login":"dmersiyanov","id":29118049,"node_id":"MDQ6VXNlcjI5MTE4MDQ5","avatar_url":"https://avatars1.githubusercontent.com/u/29118049?v=4","gravatar_id":"","url":"https://api.github.com/users/dmersiyanov","html_url":"https://github.com/dmersiyanov","followers_url":"https://api.github.com/users/dmersiyanov/followers","following_url":"https://api.github.com/users/dmersiyanov/following{/other_user}","gists_url":"https://api.github.com/users/dmersiyanov/gists{/gist_id}","starred_url":"https://api.github.com/users/dmersiyanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmersiyanov/subscriptions","organizations_url":"https://api.github.com/users/dmersiyanov/orgs","repos_url":"https://api.github.com/users/dmersiyanov/repos","events_url":"https://api.github.com/users/dmersiyanov/events{/privacy}","received_events_url":"https://api.github.com/users/dmersiyanov/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-25T11:03:40Z","updated_at":"2018-12-08T13:47:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"364353ed53acd42611ee1a3821379ee4497b0a9e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/pulls/6/commits","review_comments_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/pulls/6/comments","review_comment_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/issues/6/comments","statuses_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/statuses/eebfa2eb0c8ff8b2ca0ebb6ce3f6a5e33d0ea0a6","head":{"label":"dmersiyanov:exercise-6_persistency","ref":"exercise-6_persistency","sha":"eebfa2eb0c8ff8b2ca0ebb6ce3f6a5e33d0ea0a6","user":{"login":"dmersiyanov","id":29118049,"node_id":"MDQ6VXNlcjI5MTE4MDQ5","avatar_url":"https://avatars1.githubusercontent.com/u/29118049?v=4","gravatar_id":"","url":"https://api.github.com/users/dmersiyanov","html_url":"https://github.com/dmersiyanov","followers_url":"https://api.github.com/users/dmersiyanov/followers","following_url":"https://api.github.com/users/dmersiyanov/following{/other_user}","gists_url":"https://api.github.com/users/dmersiyanov/gists{/gist_id}","starred_url":"https://api.github.com/users/dmersiyanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmersiyanov/subscriptions","organizations_url":"https://api.github.com/users/dmersiyanov/orgs","repos_url":"https://api.github.com/users/dmersiyanov/repos","events_url":"https://api.github.com/users/dmersiyanov/events{/privacy}","received_events_url":"https://api.github.com/users/dmersiyanov/received_events","type":"User","site_admin":false},"repo":{"id":150312815,"node_id":"MDEwOlJlcG9zaXRvcnkxNTAzMTI4MTU=","name":"AndroidAcademy","full_name":"dmersiyanov/AndroidAcademy","private":false,"owner":{"login":"dmersiyanov","id":29118049,"node_id":"MDQ6VXNlcjI5MTE4MDQ5","avatar_url":"https://avatars1.githubusercontent.com/u/29118049?v=4","gravatar_id":"","url":"https://api.github.com/users/dmersiyanov","html_url":"https://github.com/dmersiyanov","followers_url":"https://api.github.com/users/dmersiyanov/followers","following_url":"https://api.github.com/users/dmersiyanov/following{/other_user}","gists_url":"https://api.github.com/users/dmersiyanov/gists{/gist_id}","starred_url":"https://api.github.com/users/dmersiyanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmersiyanov/subscriptions","organizations_url":"https://api.github.com/users/dmersiyanov/orgs","repos_url":"https://api.github.com/users/dmersiyanov/repos","events_url":"https://api.github.com/users/dmersiyanov/events{/privacy}","received_events_url":"https://api.github.com/users/dmersiyanov/received_events","type":"User","site_admin":false},"html_url":"https://github.com/dmersiyanov/AndroidAcademy","description":null,"fork":false,"url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy","forks_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/forks","keys_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/teams","hooks_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/hooks","issue_events_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/issues/events{/number}","events_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/events","assignees_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/assignees{/user}","branches_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/branches{/branch}","tags_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/tags","blobs_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/git/refs{/sha}","trees_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/statuses/{sha}","languages_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/languages","stargazers_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/stargazers","contributors_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/contributors","subscribers_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/subscribers","subscription_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/subscription","commits_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/commits{/sha}","git_commits_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/git/commits{/sha}","comments_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/comments{/number}","issue_comment_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/issues/comments{/number}","contents_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/contents/{+path}","compare_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/merges","archive_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/downloads","issues_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/issues{/number}","pulls_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/pulls{/number}","milestones_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/milestones{/number}","notifications_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/labels{/name}","releases_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/releases{/id}","deployments_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/deployments","created_at":"2018-09-25T18:40:26Z","updated_at":"2018-11-18T16:18:27Z","pushed_at":"2018-11-25T13:04:12Z","git_url":"git://github.com/dmersiyanov/AndroidAcademy.git","ssh_url":"git@github.com:dmersiyanov/AndroidAcademy.git","clone_url":"https://github.com/dmersiyanov/AndroidAcademy.git","svn_url":"https://github.com/dmersiyanov/AndroidAcademy","homepage":null,"size":644,"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":"dmersiyanov:master","ref":"master","sha":"620af5425eb0a6085cba9aac78b503f7e62e9b2a","user":{"login":"dmersiyanov","id":29118049,"node_id":"MDQ6VXNlcjI5MTE4MDQ5","avatar_url":"https://avatars1.githubusercontent.com/u/29118049?v=4","gravatar_id":"","url":"https://api.github.com/users/dmersiyanov","html_url":"https://github.com/dmersiyanov","followers_url":"https://api.github.com/users/dmersiyanov/followers","following_url":"https://api.github.com/users/dmersiyanov/following{/other_user}","gists_url":"https://api.github.com/users/dmersiyanov/gists{/gist_id}","starred_url":"https://api.github.com/users/dmersiyanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmersiyanov/subscriptions","organizations_url":"https://api.github.com/users/dmersiyanov/orgs","repos_url":"https://api.github.com/users/dmersiyanov/repos","events_url":"https://api.github.com/users/dmersiyanov/events{/privacy}","received_events_url":"https://api.github.com/users/dmersiyanov/received_events","type":"User","site_admin":false},"repo":{"id":150312815,"node_id":"MDEwOlJlcG9zaXRvcnkxNTAzMTI4MTU=","name":"AndroidAcademy","full_name":"dmersiyanov/AndroidAcademy","private":false,"owner":{"login":"dmersiyanov","id":29118049,"node_id":"MDQ6VXNlcjI5MTE4MDQ5","avatar_url":"https://avatars1.githubusercontent.com/u/29118049?v=4","gravatar_id":"","url":"https://api.github.com/users/dmersiyanov","html_url":"https://github.com/dmersiyanov","followers_url":"https://api.github.com/users/dmersiyanov/followers","following_url":"https://api.github.com/users/dmersiyanov/following{/other_user}","gists_url":"https://api.github.com/users/dmersiyanov/gists{/gist_id}","starred_url":"https://api.github.com/users/dmersiyanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmersiyanov/subscriptions","organizations_url":"https://api.github.com/users/dmersiyanov/orgs","repos_url":"https://api.github.com/users/dmersiyanov/repos","events_url":"https://api.github.com/users/dmersiyanov/events{/privacy}","received_events_url":"https://api.github.com/users/dmersiyanov/received_events","type":"User","site_admin":false},"html_url":"https://github.com/dmersiyanov/AndroidAcademy","description":null,"fork":false,"url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy","forks_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/forks","keys_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/teams","hooks_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/hooks","issue_events_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/issues/events{/number}","events_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/events","assignees_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/assignees{/user}","branches_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/branches{/branch}","tags_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/tags","blobs_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/git/refs{/sha}","trees_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/statuses/{sha}","languages_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/languages","stargazers_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/stargazers","contributors_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/contributors","subscribers_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/subscribers","subscription_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/subscription","commits_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/commits{/sha}","git_commits_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/git/commits{/sha}","comments_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/comments{/number}","issue_comment_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/issues/comments{/number}","contents_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/contents/{+path}","compare_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/merges","archive_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/downloads","issues_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/issues{/number}","pulls_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/pulls{/number}","milestones_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/milestones{/number}","notifications_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/labels{/name}","releases_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/releases{/id}","deployments_url":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/deployments","created_at":"2018-09-25T18:40:26Z","updated_at":"2018-11-18T16:18:27Z","pushed_at":"2018-11-25T13:04:12Z","git_url":"git://github.com/dmersiyanov/AndroidAcademy.git","ssh_url":"git@github.com:dmersiyanov/AndroidAcademy.git","clone_url":"https://github.com/dmersiyanov/AndroidAcademy.git","svn_url":"https://github.com/dmersiyanov/AndroidAcademy","homepage":null,"size":644,"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/dmersiyanov/AndroidAcademy/pulls/6"},"html":{"href":"https://github.com/dmersiyanov/AndroidAcademy/pull/6"},"issue":{"href":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/issues/6"},"comments":{"href":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/dmersiyanov/AndroidAcademy/statuses/eebfa2eb0c8ff8b2ca0ebb6ce3f6a5e33d0ea0a6"}},"author_association":"OWNER"}}
{"actor":{"display_login":"dmersiyanov"}}