{"action":"created","comment":{"url":"https://api.github.com/repos/hsp-harut/paint/pulls/comments/235613133","pull_request_review_id":177515920,"id":235613133,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNTYxMzEzMw==","diff_hunk":"@@ -0,0 +1,222 @@\n+package main.java.am.hsp.apps.paint.toolbox;\n+\n+import java.util.ArrayList;\n+import java.util.List;\n+\n+import main.java.am.hsp.apps.paint.exception.InvalidBrushException;\n+import main.java.am.hsp.apps.paint.exception.InvalidColorException;\n+import main.java.am.hsp.apps.paint.exception.InvalidShapeException;\n+import main.java.am.hsp.apps.paint.toolbox.shape.Rectangle;\n+import main.java.am.hsp.apps.paint.toolbox.shape.Rhombus;\n+import main.java.am.hsp.apps.paint.toolbox.shape.Shape;\n+import main.java.am.hsp.apps.paint.toolbox.shape.Triangle;\n+\n+/**\n+ * Class, which contain all methods, partition and variables for works\n+ * \"ToolBox\".\n+ * \n+ * @author lusine\n+ *\n+ */\n+public class ToolBox {\n+    public static final int RED_ID = 1;\n+    public static final int GREEN_ID = 2;\n+    public static final int BLUE_ID = 3;\n+    public static final int ORANGE_ID = 4;\n+    public static final int YELLOW_ID = 5;\n+    public static final int PINK_ID = 6;\n+\n+    public static final char RED_SIMBOL = 'R';\n+    public static final char GREEN_SIMBOL = 'G';\n+    public static final char BLUE_SIMBOL = 'B';\n+    public static final char ORANGE_SIMBOL = 'O';\n+    public static final char YELLOW_SIMBOL = 'Y';\n+    public static final char PINK_SIMBOL = 'P';\n+\n+    public static final int MIN_ID = 1;\n+    public static final int MIDDLE_ID = 2;\n+    public static final int MAX_ID = 3;\n+\n+    public static final int MIN_SIZE = 1;\n+    public static final int MIDDLE_SIZE = 2;\n+    public static final int MAX_SIZE = 3;\n+\n+    public List<Shape> shapes;\n+    public List<Color> colors;\n+    public List<Brush> brushes;\n+\n+    /**\n+     * \n+     * Default constructor\n+     */\n+    public ToolBox() {\n+        shapes = new ArrayList<>();\n+        colors = new ArrayList<>();\n+        brushes = new ArrayList<>();\n+        addedShapeInArrayLIst();\n+        addedColorsInArrayLIst();\n+        addedBrushesInArrayList();\n+\n+    }\n+\n+    /**\n+     * Method, which added new Shape in ArrayList.\n+     */\n+    public void addedShapeInArrayLIst() {\n+        shapes.add(new Triangle());\n+        shapes.add(new Rectangle());\n+        shapes.add(new Rhombus());\n+    }\n+\n+    /**\n+     * Method, which added new Colors in ArrayList.\n+     */\n+    public void addedColorsInArrayLIst() {\n+        colors.add(new Color(RED_ID, RED_SIMBOL));\n+        colors.add(new Color(GREEN_ID, GREEN_SIMBOL));\n+        colors.add(new Color(BLUE_ID, BLUE_SIMBOL));\n+        colors.add(new Color(ORANGE_ID, ORANGE_SIMBOL));\n+        colors.add(new Color(YELLOW_ID, YELLOW_SIMBOL));\n+        colors.add(new Color(PINK_ID, PINK_SIMBOL));\n+\n+    }\n+\n+    /**\n+     * Method, which added new Brush in ArrayList\n+     */\n+    public void addedBrushesInArrayList() {","path":"src/main/java/am/hsp/apps/paint/toolbox/ToolBox.java","position":87,"original_position":87,"commit_id":"e0b04e4d6337c4bb65928abe67930debee133ae7","original_commit_id":"e0b04e4d6337c4bb65928abe67930debee133ae7","user":{"login":"hsp-harut","id":34002792,"node_id":"MDQ6VXNlcjM0MDAyNzky","avatar_url":"https://avatars1.githubusercontent.com/u/34002792?v=4","gravatar_id":"","url":"https://api.github.com/users/hsp-harut","html_url":"https://github.com/hsp-harut","followers_url":"https://api.github.com/users/hsp-harut/followers","following_url":"https://api.github.com/users/hsp-harut/following{/other_user}","gists_url":"https://api.github.com/users/hsp-harut/gists{/gist_id}","starred_url":"https://api.github.com/users/hsp-harut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsp-harut/subscriptions","organizations_url":"https://api.github.com/users/hsp-harut/orgs","repos_url":"https://api.github.com/users/hsp-harut/repos","events_url":"https://api.github.com/users/hsp-harut/events{/privacy}","received_events_url":"https://api.github.com/users/hsp-harut/received_events","type":"User","site_admin":false},"body":"same","created_at":"2018-11-22T06:29:09Z","updated_at":"2018-11-22T06:46:29Z","html_url":"https://github.com/hsp-harut/paint/pull/6#discussion_r235613133","pull_request_url":"https://api.github.com/repos/hsp-harut/paint/pulls/6","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/hsp-harut/paint/pulls/comments/235613133"},"html":{"href":"https://github.com/hsp-harut/paint/pull/6#discussion_r235613133"},"pull_request":{"href":"https://api.github.com/repos/hsp-harut/paint/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/hsp-harut/paint/pulls/6","id":232466781,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyNDY2Nzgx","html_url":"https://github.com/hsp-harut/paint/pull/6","diff_url":"https://github.com/hsp-harut/paint/pull/6.diff","patch_url":"https://github.com/hsp-harut/paint/pull/6.patch","issue_url":"https://api.github.com/repos/hsp-harut/paint/issues/6","number":6,"state":"open","locked":false,"title":"Lusine: Paint","user":{"login":"hsp-lusine","id":40883878,"node_id":"MDQ6VXNlcjQwODgzODc4","avatar_url":"https://avatars2.githubusercontent.com/u/40883878?v=4","gravatar_id":"","url":"https://api.github.com/users/hsp-lusine","html_url":"https://github.com/hsp-lusine","followers_url":"https://api.github.com/users/hsp-lusine/followers","following_url":"https://api.github.com/users/hsp-lusine/following{/other_user}","gists_url":"https://api.github.com/users/hsp-lusine/gists{/gist_id}","starred_url":"https://api.github.com/users/hsp-lusine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsp-lusine/subscriptions","organizations_url":"https://api.github.com/users/hsp-lusine/orgs","repos_url":"https://api.github.com/users/hsp-lusine/repos","events_url":"https://api.github.com/users/hsp-lusine/events{/privacy}","received_events_url":"https://api.github.com/users/hsp-lusine/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-20T21:36:19Z","updated_at":"2018-11-22T06:46:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7e9796123c06ad5d04538eb739e1c440f20561ae","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1135423197,"node_id":"MDU6TGFiZWwxMTM1NDIzMTk3","url":"https://api.github.com/repos/hsp-harut/paint/labels/in%20review","name":"in review","color":"c6c7ff","default":false},{"id":1128566701,"node_id":"MDU6TGFiZWwxMTI4NTY2NzAx","url":"https://api.github.com/repos/hsp-harut/paint/labels/review%20%231","name":"review #1","color":"f4f2bb","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/hsp-harut/paint/pulls/6/commits","review_comments_url":"https://api.github.com/repos/hsp-harut/paint/pulls/6/comments","review_comment_url":"https://api.github.com/repos/hsp-harut/paint/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hsp-harut/paint/issues/6/comments","statuses_url":"https://api.github.com/repos/hsp-harut/paint/statuses/e0b04e4d6337c4bb65928abe67930debee133ae7","head":{"label":"hsp-harut:LH_Paint","ref":"LH_Paint","sha":"e0b04e4d6337c4bb65928abe67930debee133ae7","user":{"login":"hsp-harut","id":34002792,"node_id":"MDQ6VXNlcjM0MDAyNzky","avatar_url":"https://avatars1.githubusercontent.com/u/34002792?v=4","gravatar_id":"","url":"https://api.github.com/users/hsp-harut","html_url":"https://github.com/hsp-harut","followers_url":"https://api.github.com/users/hsp-harut/followers","following_url":"https://api.github.com/users/hsp-harut/following{/other_user}","gists_url":"https://api.github.com/users/hsp-harut/gists{/gist_id}","starred_url":"https://api.github.com/users/hsp-harut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsp-harut/subscriptions","organizations_url":"https://api.github.com/users/hsp-harut/orgs","repos_url":"https://api.github.com/users/hsp-harut/repos","events_url":"https://api.github.com/users/hsp-harut/events{/privacy}","received_events_url":"https://api.github.com/users/hsp-harut/received_events","type":"User","site_admin":false},"repo":{"id":130031046,"node_id":"MDEwOlJlcG9zaXRvcnkxMzAwMzEwNDY=","name":"paint","full_name":"hsp-harut/paint","private":false,"owner":{"login":"hsp-harut","id":34002792,"node_id":"MDQ6VXNlcjM0MDAyNzky","avatar_url":"https://avatars1.githubusercontent.com/u/34002792?v=4","gravatar_id":"","url":"https://api.github.com/users/hsp-harut","html_url":"https://github.com/hsp-harut","followers_url":"https://api.github.com/users/hsp-harut/followers","following_url":"https://api.github.com/users/hsp-harut/following{/other_user}","gists_url":"https://api.github.com/users/hsp-harut/gists{/gist_id}","starred_url":"https://api.github.com/users/hsp-harut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsp-harut/subscriptions","organizations_url":"https://api.github.com/users/hsp-harut/orgs","repos_url":"https://api.github.com/users/hsp-harut/repos","events_url":"https://api.github.com/users/hsp-harut/events{/privacy}","received_events_url":"https://api.github.com/users/hsp-harut/received_events","type":"User","site_admin":false},"html_url":"https://github.com/hsp-harut/paint","description":null,"fork":false,"url":"https://api.github.com/repos/hsp-harut/paint","forks_url":"https://api.github.com/repos/hsp-harut/paint/forks","keys_url":"https://api.github.com/repos/hsp-harut/paint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hsp-harut/paint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hsp-harut/paint/teams","hooks_url":"https://api.github.com/repos/hsp-harut/paint/hooks","issue_events_url":"https://api.github.com/repos/hsp-harut/paint/issues/events{/number}","events_url":"https://api.github.com/repos/hsp-harut/paint/events","assignees_url":"https://api.github.com/repos/hsp-harut/paint/assignees{/user}","branches_url":"https://api.github.com/repos/hsp-harut/paint/branches{/branch}","tags_url":"https://api.github.com/repos/hsp-harut/paint/tags","blobs_url":"https://api.github.com/repos/hsp-harut/paint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hsp-harut/paint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hsp-harut/paint/git/refs{/sha}","trees_url":"https://api.github.com/repos/hsp-harut/paint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hsp-harut/paint/statuses/{sha}","languages_url":"https://api.github.com/repos/hsp-harut/paint/languages","stargazers_url":"https://api.github.com/repos/hsp-harut/paint/stargazers","contributors_url":"https://api.github.com/repos/hsp-harut/paint/contributors","subscribers_url":"https://api.github.com/repos/hsp-harut/paint/subscribers","subscription_url":"https://api.github.com/repos/hsp-harut/paint/subscription","commits_url":"https://api.github.com/repos/hsp-harut/paint/commits{/sha}","git_commits_url":"https://api.github.com/repos/hsp-harut/paint/git/commits{/sha}","comments_url":"https://api.github.com/repos/hsp-harut/paint/comments{/number}","issue_comment_url":"https://api.github.com/repos/hsp-harut/paint/issues/comments{/number}","contents_url":"https://api.github.com/repos/hsp-harut/paint/contents/{+path}","compare_url":"https://api.github.com/repos/hsp-harut/paint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hsp-harut/paint/merges","archive_url":"https://api.github.com/repos/hsp-harut/paint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hsp-harut/paint/downloads","issues_url":"https://api.github.com/repos/hsp-harut/paint/issues{/number}","pulls_url":"https://api.github.com/repos/hsp-harut/paint/pulls{/number}","milestones_url":"https://api.github.com/repos/hsp-harut/paint/milestones{/number}","notifications_url":"https://api.github.com/repos/hsp-harut/paint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hsp-harut/paint/labels{/name}","releases_url":"https://api.github.com/repos/hsp-harut/paint/releases{/id}","deployments_url":"https://api.github.com/repos/hsp-harut/paint/deployments","created_at":"2018-04-18T08:36:31Z","updated_at":"2018-04-26T14:12:13Z","pushed_at":"2018-11-21T22:34:53Z","git_url":"git://github.com/hsp-harut/paint.git","ssh_url":"git@github.com:hsp-harut/paint.git","clone_url":"https://github.com/hsp-harut/paint.git","svn_url":"https://github.com/hsp-harut/paint","homepage":null,"size":118,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"hsp-harut:master_lusine","ref":"master_lusine","sha":"a29d4ce3261c095415a38cdba400f537e772ca5d","user":{"login":"hsp-harut","id":34002792,"node_id":"MDQ6VXNlcjM0MDAyNzky","avatar_url":"https://avatars1.githubusercontent.com/u/34002792?v=4","gravatar_id":"","url":"https://api.github.com/users/hsp-harut","html_url":"https://github.com/hsp-harut","followers_url":"https://api.github.com/users/hsp-harut/followers","following_url":"https://api.github.com/users/hsp-harut/following{/other_user}","gists_url":"https://api.github.com/users/hsp-harut/gists{/gist_id}","starred_url":"https://api.github.com/users/hsp-harut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsp-harut/subscriptions","organizations_url":"https://api.github.com/users/hsp-harut/orgs","repos_url":"https://api.github.com/users/hsp-harut/repos","events_url":"https://api.github.com/users/hsp-harut/events{/privacy}","received_events_url":"https://api.github.com/users/hsp-harut/received_events","type":"User","site_admin":false},"repo":{"id":130031046,"node_id":"MDEwOlJlcG9zaXRvcnkxMzAwMzEwNDY=","name":"paint","full_name":"hsp-harut/paint","private":false,"owner":{"login":"hsp-harut","id":34002792,"node_id":"MDQ6VXNlcjM0MDAyNzky","avatar_url":"https://avatars1.githubusercontent.com/u/34002792?v=4","gravatar_id":"","url":"https://api.github.com/users/hsp-harut","html_url":"https://github.com/hsp-harut","followers_url":"https://api.github.com/users/hsp-harut/followers","following_url":"https://api.github.com/users/hsp-harut/following{/other_user}","gists_url":"https://api.github.com/users/hsp-harut/gists{/gist_id}","starred_url":"https://api.github.com/users/hsp-harut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsp-harut/subscriptions","organizations_url":"https://api.github.com/users/hsp-harut/orgs","repos_url":"https://api.github.com/users/hsp-harut/repos","events_url":"https://api.github.com/users/hsp-harut/events{/privacy}","received_events_url":"https://api.github.com/users/hsp-harut/received_events","type":"User","site_admin":false},"html_url":"https://github.com/hsp-harut/paint","description":null,"fork":false,"url":"https://api.github.com/repos/hsp-harut/paint","forks_url":"https://api.github.com/repos/hsp-harut/paint/forks","keys_url":"https://api.github.com/repos/hsp-harut/paint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hsp-harut/paint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hsp-harut/paint/teams","hooks_url":"https://api.github.com/repos/hsp-harut/paint/hooks","issue_events_url":"https://api.github.com/repos/hsp-harut/paint/issues/events{/number}","events_url":"https://api.github.com/repos/hsp-harut/paint/events","assignees_url":"https://api.github.com/repos/hsp-harut/paint/assignees{/user}","branches_url":"https://api.github.com/repos/hsp-harut/paint/branches{/branch}","tags_url":"https://api.github.com/repos/hsp-harut/paint/tags","blobs_url":"https://api.github.com/repos/hsp-harut/paint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hsp-harut/paint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hsp-harut/paint/git/refs{/sha}","trees_url":"https://api.github.com/repos/hsp-harut/paint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hsp-harut/paint/statuses/{sha}","languages_url":"https://api.github.com/repos/hsp-harut/paint/languages","stargazers_url":"https://api.github.com/repos/hsp-harut/paint/stargazers","contributors_url":"https://api.github.com/repos/hsp-harut/paint/contributors","subscribers_url":"https://api.github.com/repos/hsp-harut/paint/subscribers","subscription_url":"https://api.github.com/repos/hsp-harut/paint/subscription","commits_url":"https://api.github.com/repos/hsp-harut/paint/commits{/sha}","git_commits_url":"https://api.github.com/repos/hsp-harut/paint/git/commits{/sha}","comments_url":"https://api.github.com/repos/hsp-harut/paint/comments{/number}","issue_comment_url":"https://api.github.com/repos/hsp-harut/paint/issues/comments{/number}","contents_url":"https://api.github.com/repos/hsp-harut/paint/contents/{+path}","compare_url":"https://api.github.com/repos/hsp-harut/paint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hsp-harut/paint/merges","archive_url":"https://api.github.com/repos/hsp-harut/paint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hsp-harut/paint/downloads","issues_url":"https://api.github.com/repos/hsp-harut/paint/issues{/number}","pulls_url":"https://api.github.com/repos/hsp-harut/paint/pulls{/number}","milestones_url":"https://api.github.com/repos/hsp-harut/paint/milestones{/number}","notifications_url":"https://api.github.com/repos/hsp-harut/paint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hsp-harut/paint/labels{/name}","releases_url":"https://api.github.com/repos/hsp-harut/paint/releases{/id}","deployments_url":"https://api.github.com/repos/hsp-harut/paint/deployments","created_at":"2018-04-18T08:36:31Z","updated_at":"2018-04-26T14:12:13Z","pushed_at":"2018-11-21T22:34:53Z","git_url":"git://github.com/hsp-harut/paint.git","ssh_url":"git@github.com:hsp-harut/paint.git","clone_url":"https://github.com/hsp-harut/paint.git","svn_url":"https://github.com/hsp-harut/paint","homepage":null,"size":118,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hsp-harut/paint/pulls/6"},"html":{"href":"https://github.com/hsp-harut/paint/pull/6"},"issue":{"href":"https://api.github.com/repos/hsp-harut/paint/issues/6"},"comments":{"href":"https://api.github.com/repos/hsp-harut/paint/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/hsp-harut/paint/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/hsp-harut/paint/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hsp-harut/paint/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/hsp-harut/paint/statuses/e0b04e4d6337c4bb65928abe67930debee133ae7"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"hsp-harut"}}