{"action":"created","comment":{"url":"https://api.github.com/repos/DYarovaya/ToDoApp/pulls/comments/197643587","pull_request_review_id":131427477,"id":197643587,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NzY0MzU4Nw==","diff_hunk":"@@ -1,67 +1,53 @@\n package com.example.darya.todoapp;\n \n-import android.app.TimePickerDialog;\n import android.content.Intent;\n import android.os.Build;\n import android.os.Bundle;\n import android.support.annotation.RequiresApi;\n import android.support.v7.app.AppCompatActivity;\n-import android.text.format.DateUtils;\n import android.view.View;\n-import android.widget.Button;\n import android.widget.TextView;\n-import android.widget.TimePicker;\n \n import java.text.SimpleDateFormat;\n-import java.util.Calendar;\n import java.util.Date;\n import java.util.Locale;\n \n public class AddNewTask extends AppCompatActivity {\n-    TextView todayDate;\n-    TextView name;\n-    TextView changeTime;\n-    Calendar dateAndTime=Calendar.getInstance();\n-    String selectTime;\n+    TextView taskDate;\n+    TextView taskName;\n+    TextView taskTime;\n+    SelectDataAndTime selectDataAndTime;\n \n \n     @RequiresApi(api = Build.VERSION_CODES.N)\n     @Override\n     protected void onCreate(Bundle savedInstanceState) {\n         super.onCreate(savedInstanceState);\n         setContentView(R.layout.new_task);\n-        todayDate = findViewById(R.id.todayDate);\n-        name = findViewById(R.id.editName);\n-        changeTime = findViewById(R.id.changeTime);\n-        String date = new SimpleDateFormat(\"dd.MMM.yyyy EEE\", Locale.getDefault()).format(new Date());\n-        todayDate.setText(date);\n+        taskDate = findViewById(R.id.taskData);\n+        taskName = findViewById(R.id.editName);\n+        taskTime = findViewById(R.id.taskTimeId);\n+        selectDataAndTime = new SelectDataAndTime(this, taskTime, taskDate);\n+        String date = new SimpleDateFormat(\"dd.MM.yyyy\", Locale.getDefault()).format(new Date());\n+        taskDate.setText(date);\n \n     }\n \n     public void onClickCreateTask (View view) {\n         Intent intent = new Intent();\n-        intent.putExtra(\"task\", name.getText().toString());\n-        intent.putExtra(\"taskTime\", selectTime);\n+        intent.putExtra(\"task\", taskName.getText().toString());\n+        intent.putExtra(\"taskTime\", selectDataAndTime.getTime());\n         setResult(1, intent);","path":"app/src/main/java/com/example/darya/todoapp/AddNewTask.java","position":57,"original_position":57,"commit_id":"73d61374643b21008a615d70061fb2671b6d548a","original_commit_id":"73d61374643b21008a615d70061fb2671b6d548a","user":{"login":"DYarovaya","id":15956461,"node_id":"MDQ6VXNlcjE1OTU2NDYx","avatar_url":"https://avatars1.githubusercontent.com/u/15956461?v=4","gravatar_id":"","url":"https://api.github.com/users/DYarovaya","html_url":"https://github.com/DYarovaya","followers_url":"https://api.github.com/users/DYarovaya/followers","following_url":"https://api.github.com/users/DYarovaya/following{/other_user}","gists_url":"https://api.github.com/users/DYarovaya/gists{/gist_id}","starred_url":"https://api.github.com/users/DYarovaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DYarovaya/subscriptions","organizations_url":"https://api.github.com/users/DYarovaya/orgs","repos_url":"https://api.github.com/users/DYarovaya/repos","events_url":"https://api.github.com/users/DYarovaya/events{/privacy}","received_events_url":"https://api.github.com/users/DYarovaya/received_events","type":"User","site_admin":false},"body":"done","created_at":"2018-06-24T15:30:37Z","updated_at":"2018-06-24T15:30:37Z","html_url":"https://github.com/DYarovaya/ToDoApp/pull/1#discussion_r197643587","pull_request_url":"https://api.github.com/repos/DYarovaya/ToDoApp/pulls/1","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/DYarovaya/ToDoApp/pulls/comments/197643587"},"html":{"href":"https://github.com/DYarovaya/ToDoApp/pull/1#discussion_r197643587"},"pull_request":{"href":"https://api.github.com/repos/DYarovaya/ToDoApp/pulls/1"}},"in_reply_to_id":197638741},"pull_request":{"url":"https://api.github.com/repos/DYarovaya/ToDoApp/pulls/1","id":196920630,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2OTIwNjMw","html_url":"https://github.com/DYarovaya/ToDoApp/pull/1","diff_url":"https://github.com/DYarovaya/ToDoApp/pull/1.diff","patch_url":"https://github.com/DYarovaya/ToDoApp/pull/1.patch","issue_url":"https://api.github.com/repos/DYarovaya/ToDoApp/issues/1","number":1,"state":"open","locked":false,"title":"возможность выбрать дату","user":{"login":"DYarovaya","id":15956461,"node_id":"MDQ6VXNlcjE1OTU2NDYx","avatar_url":"https://avatars1.githubusercontent.com/u/15956461?v=4","gravatar_id":"","url":"https://api.github.com/users/DYarovaya","html_url":"https://github.com/DYarovaya","followers_url":"https://api.github.com/users/DYarovaya/followers","following_url":"https://api.github.com/users/DYarovaya/following{/other_user}","gists_url":"https://api.github.com/users/DYarovaya/gists{/gist_id}","starred_url":"https://api.github.com/users/DYarovaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DYarovaya/subscriptions","organizations_url":"https://api.github.com/users/DYarovaya/orgs","repos_url":"https://api.github.com/users/DYarovaya/repos","events_url":"https://api.github.com/users/DYarovaya/events{/privacy}","received_events_url":"https://api.github.com/users/DYarovaya/received_events","type":"User","site_admin":false},"body":"Вынесла работу с датой и временем в отдельный класc","created_at":"2018-06-23T21:06:10Z","updated_at":"2018-06-24T15:30:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"251456e185e9591f94645cb4b3e44fb928d2c3fe","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/DYarovaya/ToDoApp/pulls/1/commits","review_comments_url":"https://api.github.com/repos/DYarovaya/ToDoApp/pulls/1/comments","review_comment_url":"https://api.github.com/repos/DYarovaya/ToDoApp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DYarovaya/ToDoApp/issues/1/comments","statuses_url":"https://api.github.com/repos/DYarovaya/ToDoApp/statuses/73d61374643b21008a615d70061fb2671b6d548a","head":{"label":"DYarovaya:feature","ref":"feature","sha":"73d61374643b21008a615d70061fb2671b6d548a","user":{"login":"DYarovaya","id":15956461,"node_id":"MDQ6VXNlcjE1OTU2NDYx","avatar_url":"https://avatars1.githubusercontent.com/u/15956461?v=4","gravatar_id":"","url":"https://api.github.com/users/DYarovaya","html_url":"https://github.com/DYarovaya","followers_url":"https://api.github.com/users/DYarovaya/followers","following_url":"https://api.github.com/users/DYarovaya/following{/other_user}","gists_url":"https://api.github.com/users/DYarovaya/gists{/gist_id}","starred_url":"https://api.github.com/users/DYarovaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DYarovaya/subscriptions","organizations_url":"https://api.github.com/users/DYarovaya/orgs","repos_url":"https://api.github.com/users/DYarovaya/repos","events_url":"https://api.github.com/users/DYarovaya/events{/privacy}","received_events_url":"https://api.github.com/users/DYarovaya/received_events","type":"User","site_admin":false},"repo":{"id":138213534,"node_id":"MDEwOlJlcG9zaXRvcnkxMzgyMTM1MzQ=","name":"ToDoApp","full_name":"DYarovaya/ToDoApp","owner":{"login":"DYarovaya","id":15956461,"node_id":"MDQ6VXNlcjE1OTU2NDYx","avatar_url":"https://avatars1.githubusercontent.com/u/15956461?v=4","gravatar_id":"","url":"https://api.github.com/users/DYarovaya","html_url":"https://github.com/DYarovaya","followers_url":"https://api.github.com/users/DYarovaya/followers","following_url":"https://api.github.com/users/DYarovaya/following{/other_user}","gists_url":"https://api.github.com/users/DYarovaya/gists{/gist_id}","starred_url":"https://api.github.com/users/DYarovaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DYarovaya/subscriptions","organizations_url":"https://api.github.com/users/DYarovaya/orgs","repos_url":"https://api.github.com/users/DYarovaya/repos","events_url":"https://api.github.com/users/DYarovaya/events{/privacy}","received_events_url":"https://api.github.com/users/DYarovaya/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DYarovaya/ToDoApp","description":null,"fork":false,"url":"https://api.github.com/repos/DYarovaya/ToDoApp","forks_url":"https://api.github.com/repos/DYarovaya/ToDoApp/forks","keys_url":"https://api.github.com/repos/DYarovaya/ToDoApp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DYarovaya/ToDoApp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DYarovaya/ToDoApp/teams","hooks_url":"https://api.github.com/repos/DYarovaya/ToDoApp/hooks","issue_events_url":"https://api.github.com/repos/DYarovaya/ToDoApp/issues/events{/number}","events_url":"https://api.github.com/repos/DYarovaya/ToDoApp/events","assignees_url":"https://api.github.com/repos/DYarovaya/ToDoApp/assignees{/user}","branches_url":"https://api.github.com/repos/DYarovaya/ToDoApp/branches{/branch}","tags_url":"https://api.github.com/repos/DYarovaya/ToDoApp/tags","blobs_url":"https://api.github.com/repos/DYarovaya/ToDoApp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DYarovaya/ToDoApp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DYarovaya/ToDoApp/git/refs{/sha}","trees_url":"https://api.github.com/repos/DYarovaya/ToDoApp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DYarovaya/ToDoApp/statuses/{sha}","languages_url":"https://api.github.com/repos/DYarovaya/ToDoApp/languages","stargazers_url":"https://api.github.com/repos/DYarovaya/ToDoApp/stargazers","contributors_url":"https://api.github.com/repos/DYarovaya/ToDoApp/contributors","subscribers_url":"https://api.github.com/repos/DYarovaya/ToDoApp/subscribers","subscription_url":"https://api.github.com/repos/DYarovaya/ToDoApp/subscription","commits_url":"https://api.github.com/repos/DYarovaya/ToDoApp/commits{/sha}","git_commits_url":"https://api.github.com/repos/DYarovaya/ToDoApp/git/commits{/sha}","comments_url":"https://api.github.com/repos/DYarovaya/ToDoApp/comments{/number}","issue_comment_url":"https://api.github.com/repos/DYarovaya/ToDoApp/issues/comments{/number}","contents_url":"https://api.github.com/repos/DYarovaya/ToDoApp/contents/{+path}","compare_url":"https://api.github.com/repos/DYarovaya/ToDoApp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DYarovaya/ToDoApp/merges","archive_url":"https://api.github.com/repos/DYarovaya/ToDoApp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DYarovaya/ToDoApp/downloads","issues_url":"https://api.github.com/repos/DYarovaya/ToDoApp/issues{/number}","pulls_url":"https://api.github.com/repos/DYarovaya/ToDoApp/pulls{/number}","milestones_url":"https://api.github.com/repos/DYarovaya/ToDoApp/milestones{/number}","notifications_url":"https://api.github.com/repos/DYarovaya/ToDoApp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DYarovaya/ToDoApp/labels{/name}","releases_url":"https://api.github.com/repos/DYarovaya/ToDoApp/releases{/id}","deployments_url":"https://api.github.com/repos/DYarovaya/ToDoApp/deployments","created_at":"2018-06-21T19:29:29Z","updated_at":"2018-06-23T19:35:30Z","pushed_at":"2018-06-23T21:23:58Z","git_url":"git://github.com/DYarovaya/ToDoApp.git","ssh_url":"git@github.com:DYarovaya/ToDoApp.git","clone_url":"https://github.com/DYarovaya/ToDoApp.git","svn_url":"https://github.com/DYarovaya/ToDoApp","homepage":null,"size":136,"stargazers_count":0,"watchers_count":0,"language":"Java","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":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"DYarovaya:master","ref":"master","sha":"38b7340ba31d67621c0888e78a209d8f49750f78","user":{"login":"DYarovaya","id":15956461,"node_id":"MDQ6VXNlcjE1OTU2NDYx","avatar_url":"https://avatars1.githubusercontent.com/u/15956461?v=4","gravatar_id":"","url":"https://api.github.com/users/DYarovaya","html_url":"https://github.com/DYarovaya","followers_url":"https://api.github.com/users/DYarovaya/followers","following_url":"https://api.github.com/users/DYarovaya/following{/other_user}","gists_url":"https://api.github.com/users/DYarovaya/gists{/gist_id}","starred_url":"https://api.github.com/users/DYarovaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DYarovaya/subscriptions","organizations_url":"https://api.github.com/users/DYarovaya/orgs","repos_url":"https://api.github.com/users/DYarovaya/repos","events_url":"https://api.github.com/users/DYarovaya/events{/privacy}","received_events_url":"https://api.github.com/users/DYarovaya/received_events","type":"User","site_admin":false},"repo":{"id":138213534,"node_id":"MDEwOlJlcG9zaXRvcnkxMzgyMTM1MzQ=","name":"ToDoApp","full_name":"DYarovaya/ToDoApp","owner":{"login":"DYarovaya","id":15956461,"node_id":"MDQ6VXNlcjE1OTU2NDYx","avatar_url":"https://avatars1.githubusercontent.com/u/15956461?v=4","gravatar_id":"","url":"https://api.github.com/users/DYarovaya","html_url":"https://github.com/DYarovaya","followers_url":"https://api.github.com/users/DYarovaya/followers","following_url":"https://api.github.com/users/DYarovaya/following{/other_user}","gists_url":"https://api.github.com/users/DYarovaya/gists{/gist_id}","starred_url":"https://api.github.com/users/DYarovaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DYarovaya/subscriptions","organizations_url":"https://api.github.com/users/DYarovaya/orgs","repos_url":"https://api.github.com/users/DYarovaya/repos","events_url":"https://api.github.com/users/DYarovaya/events{/privacy}","received_events_url":"https://api.github.com/users/DYarovaya/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DYarovaya/ToDoApp","description":null,"fork":false,"url":"https://api.github.com/repos/DYarovaya/ToDoApp","forks_url":"https://api.github.com/repos/DYarovaya/ToDoApp/forks","keys_url":"https://api.github.com/repos/DYarovaya/ToDoApp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DYarovaya/ToDoApp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DYarovaya/ToDoApp/teams","hooks_url":"https://api.github.com/repos/DYarovaya/ToDoApp/hooks","issue_events_url":"https://api.github.com/repos/DYarovaya/ToDoApp/issues/events{/number}","events_url":"https://api.github.com/repos/DYarovaya/ToDoApp/events","assignees_url":"https://api.github.com/repos/DYarovaya/ToDoApp/assignees{/user}","branches_url":"https://api.github.com/repos/DYarovaya/ToDoApp/branches{/branch}","tags_url":"https://api.github.com/repos/DYarovaya/ToDoApp/tags","blobs_url":"https://api.github.com/repos/DYarovaya/ToDoApp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DYarovaya/ToDoApp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DYarovaya/ToDoApp/git/refs{/sha}","trees_url":"https://api.github.com/repos/DYarovaya/ToDoApp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DYarovaya/ToDoApp/statuses/{sha}","languages_url":"https://api.github.com/repos/DYarovaya/ToDoApp/languages","stargazers_url":"https://api.github.com/repos/DYarovaya/ToDoApp/stargazers","contributors_url":"https://api.github.com/repos/DYarovaya/ToDoApp/contributors","subscribers_url":"https://api.github.com/repos/DYarovaya/ToDoApp/subscribers","subscription_url":"https://api.github.com/repos/DYarovaya/ToDoApp/subscription","commits_url":"https://api.github.com/repos/DYarovaya/ToDoApp/commits{/sha}","git_commits_url":"https://api.github.com/repos/DYarovaya/ToDoApp/git/commits{/sha}","comments_url":"https://api.github.com/repos/DYarovaya/ToDoApp/comments{/number}","issue_comment_url":"https://api.github.com/repos/DYarovaya/ToDoApp/issues/comments{/number}","contents_url":"https://api.github.com/repos/DYarovaya/ToDoApp/contents/{+path}","compare_url":"https://api.github.com/repos/DYarovaya/ToDoApp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DYarovaya/ToDoApp/merges","archive_url":"https://api.github.com/repos/DYarovaya/ToDoApp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DYarovaya/ToDoApp/downloads","issues_url":"https://api.github.com/repos/DYarovaya/ToDoApp/issues{/number}","pulls_url":"https://api.github.com/repos/DYarovaya/ToDoApp/pulls{/number}","milestones_url":"https://api.github.com/repos/DYarovaya/ToDoApp/milestones{/number}","notifications_url":"https://api.github.com/repos/DYarovaya/ToDoApp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DYarovaya/ToDoApp/labels{/name}","releases_url":"https://api.github.com/repos/DYarovaya/ToDoApp/releases{/id}","deployments_url":"https://api.github.com/repos/DYarovaya/ToDoApp/deployments","created_at":"2018-06-21T19:29:29Z","updated_at":"2018-06-23T19:35:30Z","pushed_at":"2018-06-23T21:23:58Z","git_url":"git://github.com/DYarovaya/ToDoApp.git","ssh_url":"git@github.com:DYarovaya/ToDoApp.git","clone_url":"https://github.com/DYarovaya/ToDoApp.git","svn_url":"https://github.com/DYarovaya/ToDoApp","homepage":null,"size":136,"stargazers_count":0,"watchers_count":0,"language":"Java","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":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DYarovaya/ToDoApp/pulls/1"},"html":{"href":"https://github.com/DYarovaya/ToDoApp/pull/1"},"issue":{"href":"https://api.github.com/repos/DYarovaya/ToDoApp/issues/1"},"comments":{"href":"https://api.github.com/repos/DYarovaya/ToDoApp/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/DYarovaya/ToDoApp/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/DYarovaya/ToDoApp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DYarovaya/ToDoApp/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/DYarovaya/ToDoApp/statuses/73d61374643b21008a615d70061fb2671b6d548a"}},"author_association":"OWNER"}}
{"actor":{"display_login":"DYarovaya"}}