{"action":"created","comment":{"url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/pulls/comments/285568569","pull_request_review_id":239469270,"id":285568569,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI4NTU2ODU2OQ==","diff_hunk":"@@ -0,0 +1,88 @@\n+﻿using System;\n+using System.Collections.Generic;\n+using System.Linq;\n+using System.Text;\n+using System.Threading.Tasks;\n+\n+namespace DataStructure\n+{\n+    public class LinkedList : ILinkedList\n+    {\n+        private Node _first;\n+        private Node _last;\n+        private int _size;\n+        public void Add(int item)\n+        {\n+            Node node = new Node(item);\n+            if (_first == null)\n+            {\n+                _first = node;\n+                _last = node;\n+            }\n+            else\n+            {\n+                _last.SetNext(node);\n+                node.SetPrevious(_last);\n+                _last = node;\n+            }\n+            _size++;\n+        }\n+\n+        public void Clear()\n+        {\n+            _first = null;\n+            _last = null;\n+            _size = 0;\n+        }\n+\n+        public int Get()\n+        {\n+            if (_first == null)\n+            {\n+                throw new NullReferenceException();","path":"DataStructure/LinkedList.cs","position":42,"original_position":42,"commit_id":"68963f93c6da1e5428fc5fd66b67fdace6144767","original_commit_id":"68963f93c6da1e5428fc5fd66b67fdace6144767","user":{"login":"MykhailoPastukh","id":50209155,"node_id":"MDQ6VXNlcjUwMjA5MTU1","avatar_url":"https://avatars1.githubusercontent.com/u/50209155?v=4","gravatar_id":"","url":"https://api.github.com/users/MykhailoPastukh","html_url":"https://github.com/MykhailoPastukh","followers_url":"https://api.github.com/users/MykhailoPastukh/followers","following_url":"https://api.github.com/users/MykhailoPastukh/following{/other_user}","gists_url":"https://api.github.com/users/MykhailoPastukh/gists{/gist_id}","starred_url":"https://api.github.com/users/MykhailoPastukh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MykhailoPastukh/subscriptions","organizations_url":"https://api.github.com/users/MykhailoPastukh/orgs","repos_url":"https://api.github.com/users/MykhailoPastukh/repos","events_url":"https://api.github.com/users/MykhailoPastukh/events{/privacy}","received_events_url":"https://api.github.com/users/MykhailoPastukh/received_events","type":"User","site_admin":false},"body":"Check size, not _first","created_at":"2019-05-20T12:34:33Z","updated_at":"2019-05-20T12:34:34Z","html_url":"https://github.com/MykhailoPastukh/Data-Structure/pull/11#discussion_r285568569","pull_request_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/pulls/11","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/pulls/comments/285568569"},"html":{"href":"https://github.com/MykhailoPastukh/Data-Structure/pull/11#discussion_r285568569"},"pull_request":{"href":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/pulls/11","id":279580163,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjc5NTgwMTYz","html_url":"https://github.com/MykhailoPastukh/Data-Structure/pull/11","diff_url":"https://github.com/MykhailoPastukh/Data-Structure/pull/11.diff","patch_url":"https://github.com/MykhailoPastukh/Data-Structure/pull/11.patch","issue_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/issues/11","number":11,"state":"open","locked":false,"title":"\"#10 Add Linked List and tests for it\"","user":{"login":"MykhailoPastukh","id":50209155,"node_id":"MDQ6VXNlcjUwMjA5MTU1","avatar_url":"https://avatars1.githubusercontent.com/u/50209155?v=4","gravatar_id":"","url":"https://api.github.com/users/MykhailoPastukh","html_url":"https://github.com/MykhailoPastukh","followers_url":"https://api.github.com/users/MykhailoPastukh/followers","following_url":"https://api.github.com/users/MykhailoPastukh/following{/other_user}","gists_url":"https://api.github.com/users/MykhailoPastukh/gists{/gist_id}","starred_url":"https://api.github.com/users/MykhailoPastukh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MykhailoPastukh/subscriptions","organizations_url":"https://api.github.com/users/MykhailoPastukh/orgs","repos_url":"https://api.github.com/users/MykhailoPastukh/repos","events_url":"https://api.github.com/users/MykhailoPastukh/events{/privacy}","received_events_url":"https://api.github.com/users/MykhailoPastukh/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-05-16T16:22:00Z","updated_at":"2019-05-20T12:34:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"96305bf2803a253873607180afa8ee08c222ae43","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/pulls/11/commits","review_comments_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/pulls/11/comments","review_comment_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/issues/11/comments","statuses_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/statuses/68963f93c6da1e5428fc5fd66b67fdace6144767","head":{"label":"MykhailoPastukh:feature/10-add-linked-list","ref":"feature/10-add-linked-list","sha":"68963f93c6da1e5428fc5fd66b67fdace6144767","user":{"login":"MykhailoPastukh","id":50209155,"node_id":"MDQ6VXNlcjUwMjA5MTU1","avatar_url":"https://avatars1.githubusercontent.com/u/50209155?v=4","gravatar_id":"","url":"https://api.github.com/users/MykhailoPastukh","html_url":"https://github.com/MykhailoPastukh","followers_url":"https://api.github.com/users/MykhailoPastukh/followers","following_url":"https://api.github.com/users/MykhailoPastukh/following{/other_user}","gists_url":"https://api.github.com/users/MykhailoPastukh/gists{/gist_id}","starred_url":"https://api.github.com/users/MykhailoPastukh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MykhailoPastukh/subscriptions","organizations_url":"https://api.github.com/users/MykhailoPastukh/orgs","repos_url":"https://api.github.com/users/MykhailoPastukh/repos","events_url":"https://api.github.com/users/MykhailoPastukh/events{/privacy}","received_events_url":"https://api.github.com/users/MykhailoPastukh/received_events","type":"User","site_admin":false},"repo":{"id":185619633,"node_id":"MDEwOlJlcG9zaXRvcnkxODU2MTk2MzM=","name":"Data-Structure","full_name":"MykhailoPastukh/Data-Structure","private":false,"owner":{"login":"MykhailoPastukh","id":50209155,"node_id":"MDQ6VXNlcjUwMjA5MTU1","avatar_url":"https://avatars1.githubusercontent.com/u/50209155?v=4","gravatar_id":"","url":"https://api.github.com/users/MykhailoPastukh","html_url":"https://github.com/MykhailoPastukh","followers_url":"https://api.github.com/users/MykhailoPastukh/followers","following_url":"https://api.github.com/users/MykhailoPastukh/following{/other_user}","gists_url":"https://api.github.com/users/MykhailoPastukh/gists{/gist_id}","starred_url":"https://api.github.com/users/MykhailoPastukh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MykhailoPastukh/subscriptions","organizations_url":"https://api.github.com/users/MykhailoPastukh/orgs","repos_url":"https://api.github.com/users/MykhailoPastukh/repos","events_url":"https://api.github.com/users/MykhailoPastukh/events{/privacy}","received_events_url":"https://api.github.com/users/MykhailoPastukh/received_events","type":"User","site_admin":false},"html_url":"https://github.com/MykhailoPastukh/Data-Structure","description":"Stack, Queue, Ring buffer, Linked List","fork":false,"url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure","forks_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/forks","keys_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/teams","hooks_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/hooks","issue_events_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/issues/events{/number}","events_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/events","assignees_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/assignees{/user}","branches_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/branches{/branch}","tags_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/tags","blobs_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/git/refs{/sha}","trees_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/statuses/{sha}","languages_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/languages","stargazers_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/stargazers","contributors_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/contributors","subscribers_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/subscribers","subscription_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/subscription","commits_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/commits{/sha}","git_commits_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/git/commits{/sha}","comments_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/comments{/number}","issue_comment_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/issues/comments{/number}","contents_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/contents/{+path}","compare_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/merges","archive_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/downloads","issues_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/issues{/number}","pulls_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/pulls{/number}","milestones_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/milestones{/number}","notifications_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/labels{/name}","releases_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/releases{/id}","deployments_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/deployments","created_at":"2019-05-08T14:13:00Z","updated_at":"2019-05-16T15:42:04Z","pushed_at":"2019-05-17T15:50:55Z","git_url":"git://github.com/MykhailoPastukh/Data-Structure.git","ssh_url":"git@github.com:MykhailoPastukh/Data-Structure.git","clone_url":"https://github.com/MykhailoPastukh/Data-Structure.git","svn_url":"https://github.com/MykhailoPastukh/Data-Structure","homepage":null,"size":6093,"stargazers_count":0,"watchers_count":0,"language":"C#","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":12,"license":null,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"base":{"label":"MykhailoPastukh:master","ref":"master","sha":"e730af627c0e3985eebf3417d3bdd0a3a4460906","user":{"login":"MykhailoPastukh","id":50209155,"node_id":"MDQ6VXNlcjUwMjA5MTU1","avatar_url":"https://avatars1.githubusercontent.com/u/50209155?v=4","gravatar_id":"","url":"https://api.github.com/users/MykhailoPastukh","html_url":"https://github.com/MykhailoPastukh","followers_url":"https://api.github.com/users/MykhailoPastukh/followers","following_url":"https://api.github.com/users/MykhailoPastukh/following{/other_user}","gists_url":"https://api.github.com/users/MykhailoPastukh/gists{/gist_id}","starred_url":"https://api.github.com/users/MykhailoPastukh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MykhailoPastukh/subscriptions","organizations_url":"https://api.github.com/users/MykhailoPastukh/orgs","repos_url":"https://api.github.com/users/MykhailoPastukh/repos","events_url":"https://api.github.com/users/MykhailoPastukh/events{/privacy}","received_events_url":"https://api.github.com/users/MykhailoPastukh/received_events","type":"User","site_admin":false},"repo":{"id":185619633,"node_id":"MDEwOlJlcG9zaXRvcnkxODU2MTk2MzM=","name":"Data-Structure","full_name":"MykhailoPastukh/Data-Structure","private":false,"owner":{"login":"MykhailoPastukh","id":50209155,"node_id":"MDQ6VXNlcjUwMjA5MTU1","avatar_url":"https://avatars1.githubusercontent.com/u/50209155?v=4","gravatar_id":"","url":"https://api.github.com/users/MykhailoPastukh","html_url":"https://github.com/MykhailoPastukh","followers_url":"https://api.github.com/users/MykhailoPastukh/followers","following_url":"https://api.github.com/users/MykhailoPastukh/following{/other_user}","gists_url":"https://api.github.com/users/MykhailoPastukh/gists{/gist_id}","starred_url":"https://api.github.com/users/MykhailoPastukh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MykhailoPastukh/subscriptions","organizations_url":"https://api.github.com/users/MykhailoPastukh/orgs","repos_url":"https://api.github.com/users/MykhailoPastukh/repos","events_url":"https://api.github.com/users/MykhailoPastukh/events{/privacy}","received_events_url":"https://api.github.com/users/MykhailoPastukh/received_events","type":"User","site_admin":false},"html_url":"https://github.com/MykhailoPastukh/Data-Structure","description":"Stack, Queue, Ring buffer, Linked List","fork":false,"url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure","forks_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/forks","keys_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/teams","hooks_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/hooks","issue_events_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/issues/events{/number}","events_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/events","assignees_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/assignees{/user}","branches_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/branches{/branch}","tags_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/tags","blobs_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/git/refs{/sha}","trees_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/statuses/{sha}","languages_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/languages","stargazers_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/stargazers","contributors_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/contributors","subscribers_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/subscribers","subscription_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/subscription","commits_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/commits{/sha}","git_commits_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/git/commits{/sha}","comments_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/comments{/number}","issue_comment_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/issues/comments{/number}","contents_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/contents/{+path}","compare_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/merges","archive_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/downloads","issues_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/issues{/number}","pulls_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/pulls{/number}","milestones_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/milestones{/number}","notifications_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/labels{/name}","releases_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/releases{/id}","deployments_url":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/deployments","created_at":"2019-05-08T14:13:00Z","updated_at":"2019-05-16T15:42:04Z","pushed_at":"2019-05-17T15:50:55Z","git_url":"git://github.com/MykhailoPastukh/Data-Structure.git","ssh_url":"git@github.com:MykhailoPastukh/Data-Structure.git","clone_url":"https://github.com/MykhailoPastukh/Data-Structure.git","svn_url":"https://github.com/MykhailoPastukh/Data-Structure","homepage":null,"size":6093,"stargazers_count":0,"watchers_count":0,"language":"C#","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":12,"license":null,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/pulls/11"},"html":{"href":"https://github.com/MykhailoPastukh/Data-Structure/pull/11"},"issue":{"href":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/issues/11"},"comments":{"href":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/MykhailoPastukh/Data-Structure/statuses/68963f93c6da1e5428fc5fd66b67fdace6144767"}},"author_association":"OWNER"}}
{"actor":{"display_login":"MykhailoPastukh"}}