{"action":"created","comment":{"url":"https://api.github.com/repos/kicsikrumpli/pancake/pulls/comments/60900589","id":60900589,"diff_hunk":"@@ -0,0 +1,52 @@\n+package io.github.pancake.service.pancake.domain;\n+\n+import io.github.pancake.persistence.base.Pancake;\n+\n+/**\n+ * Contains pancake type and ordered amount.\n+ * @author Bence_Kornis\n+ */\n+public class PancakeAmount {\n+    private Pancake type;\n+    private int amount;\n+\n+    public Pancake getType() {\n+        return type;\n+    }\n+\n+    public void setType(Pancake type) {\n+        this.type = type;\n+    }\n+\n+    public int getAmount() {\n+        return amount;\n+    }\n+\n+    public void setAmount(int amount) {\n+        this.amount = amount;\n+    }\n+\n+    private PancakeAmount(Builder builder) {\n+        this.type = builder.type;\n+        this.amount = builder.amount;\n+    }\n+","path":"pancake-service/src/main/java/io/github/pancake/service/pancake/domain/PancakeAmount.java","position":33,"original_position":33,"commit_id":"cbcd708550cd263591a566f97bab18c6109555d4","original_commit_id":"3fb4bf16bd79999a2a57fd6c8fbf9eca17851fad","user":{"login":"BotondSoltesz","id":18066904,"avatar_url":"https://avatars.githubusercontent.com/u/18066904?v=3","gravatar_id":"","url":"https://api.github.com/users/BotondSoltesz","html_url":"https://github.com/BotondSoltesz","followers_url":"https://api.github.com/users/BotondSoltesz/followers","following_url":"https://api.github.com/users/BotondSoltesz/following{/other_user}","gists_url":"https://api.github.com/users/BotondSoltesz/gists{/gist_id}","starred_url":"https://api.github.com/users/BotondSoltesz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BotondSoltesz/subscriptions","organizations_url":"https://api.github.com/users/BotondSoltesz/orgs","repos_url":"https://api.github.com/users/BotondSoltesz/repos","events_url":"https://api.github.com/users/BotondSoltesz/events{/privacy}","received_events_url":"https://api.github.com/users/BotondSoltesz/received_events","type":"User","site_admin":false},"body":"I suggest to create a _builder()_ method\r\n\r\n    public static Builder builder() {\r\n        return new Builder();\r\n    }\r\n\r\nto call builder like: PancakeAmount.builder().with...","created_at":"2016-04-25T11:50:19Z","updated_at":"2016-04-25T11:50:19Z","html_url":"https://github.com/kicsikrumpli/pancake/pull/9#discussion_r60900589","pull_request_url":"https://api.github.com/repos/kicsikrumpli/pancake/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/kicsikrumpli/pancake/pulls/comments/60900589"},"html":{"href":"https://github.com/kicsikrumpli/pancake/pull/9#discussion_r60900589"},"pull_request":{"href":"https://api.github.com/repos/kicsikrumpli/pancake/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/kicsikrumpli/pancake/pulls/9","id":67704917,"html_url":"https://github.com/kicsikrumpli/pancake/pull/9","diff_url":"https://github.com/kicsikrumpli/pancake/pull/9.diff","patch_url":"https://github.com/kicsikrumpli/pancake/pull/9.patch","issue_url":"https://api.github.com/repos/kicsikrumpli/pancake/issues/9","number":9,"state":"open","locked":false,"title":"4.step, please review","user":{"login":"kornisb","id":3297315,"avatar_url":"https://avatars.githubusercontent.com/u/3297315?v=3","gravatar_id":"","url":"https://api.github.com/users/kornisb","html_url":"https://github.com/kornisb","followers_url":"https://api.github.com/users/kornisb/followers","following_url":"https://api.github.com/users/kornisb/following{/other_user}","gists_url":"https://api.github.com/users/kornisb/gists{/gist_id}","starred_url":"https://api.github.com/users/kornisb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kornisb/subscriptions","organizations_url":"https://api.github.com/users/kornisb/orgs","repos_url":"https://api.github.com/users/kornisb/repos","events_url":"https://api.github.com/users/kornisb/events{/privacy}","received_events_url":"https://api.github.com/users/kornisb/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-25T11:36:06Z","updated_at":"2016-04-25T11:50:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ea7bb91b04ba42644165f68213a90d170f85bee5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kicsikrumpli/pancake/pulls/9/commits","review_comments_url":"https://api.github.com/repos/kicsikrumpli/pancake/pulls/9/comments","review_comment_url":"https://api.github.com/repos/kicsikrumpli/pancake/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kicsikrumpli/pancake/issues/9/comments","statuses_url":"https://api.github.com/repos/kicsikrumpli/pancake/statuses/cbcd708550cd263591a566f97bab18c6109555d4","head":{"label":"kornisb:master","ref":"master","sha":"cbcd708550cd263591a566f97bab18c6109555d4","user":{"login":"kornisb","id":3297315,"avatar_url":"https://avatars.githubusercontent.com/u/3297315?v=3","gravatar_id":"","url":"https://api.github.com/users/kornisb","html_url":"https://github.com/kornisb","followers_url":"https://api.github.com/users/kornisb/followers","following_url":"https://api.github.com/users/kornisb/following{/other_user}","gists_url":"https://api.github.com/users/kornisb/gists{/gist_id}","starred_url":"https://api.github.com/users/kornisb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kornisb/subscriptions","organizations_url":"https://api.github.com/users/kornisb/orgs","repos_url":"https://api.github.com/users/kornisb/repos","events_url":"https://api.github.com/users/kornisb/events{/privacy}","received_events_url":"https://api.github.com/users/kornisb/received_events","type":"User","site_admin":false},"repo":{"id":54632953,"name":"pancake","full_name":"kornisb/pancake","owner":{"login":"kornisb","id":3297315,"avatar_url":"https://avatars.githubusercontent.com/u/3297315?v=3","gravatar_id":"","url":"https://api.github.com/users/kornisb","html_url":"https://github.com/kornisb","followers_url":"https://api.github.com/users/kornisb/followers","following_url":"https://api.github.com/users/kornisb/following{/other_user}","gists_url":"https://api.github.com/users/kornisb/gists{/gist_id}","starred_url":"https://api.github.com/users/kornisb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kornisb/subscriptions","organizations_url":"https://api.github.com/users/kornisb/orgs","repos_url":"https://api.github.com/users/kornisb/repos","events_url":"https://api.github.com/users/kornisb/events{/privacy}","received_events_url":"https://api.github.com/users/kornisb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kornisb/pancake","description":"pancake training project","fork":true,"url":"https://api.github.com/repos/kornisb/pancake","forks_url":"https://api.github.com/repos/kornisb/pancake/forks","keys_url":"https://api.github.com/repos/kornisb/pancake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kornisb/pancake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kornisb/pancake/teams","hooks_url":"https://api.github.com/repos/kornisb/pancake/hooks","issue_events_url":"https://api.github.com/repos/kornisb/pancake/issues/events{/number}","events_url":"https://api.github.com/repos/kornisb/pancake/events","assignees_url":"https://api.github.com/repos/kornisb/pancake/assignees{/user}","branches_url":"https://api.github.com/repos/kornisb/pancake/branches{/branch}","tags_url":"https://api.github.com/repos/kornisb/pancake/tags","blobs_url":"https://api.github.com/repos/kornisb/pancake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kornisb/pancake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kornisb/pancake/git/refs{/sha}","trees_url":"https://api.github.com/repos/kornisb/pancake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kornisb/pancake/statuses/{sha}","languages_url":"https://api.github.com/repos/kornisb/pancake/languages","stargazers_url":"https://api.github.com/repos/kornisb/pancake/stargazers","contributors_url":"https://api.github.com/repos/kornisb/pancake/contributors","subscribers_url":"https://api.github.com/repos/kornisb/pancake/subscribers","subscription_url":"https://api.github.com/repos/kornisb/pancake/subscription","commits_url":"https://api.github.com/repos/kornisb/pancake/commits{/sha}","git_commits_url":"https://api.github.com/repos/kornisb/pancake/git/commits{/sha}","comments_url":"https://api.github.com/repos/kornisb/pancake/comments{/number}","issue_comment_url":"https://api.github.com/repos/kornisb/pancake/issues/comments{/number}","contents_url":"https://api.github.com/repos/kornisb/pancake/contents/{+path}","compare_url":"https://api.github.com/repos/kornisb/pancake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kornisb/pancake/merges","archive_url":"https://api.github.com/repos/kornisb/pancake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kornisb/pancake/downloads","issues_url":"https://api.github.com/repos/kornisb/pancake/issues{/number}","pulls_url":"https://api.github.com/repos/kornisb/pancake/pulls{/number}","milestones_url":"https://api.github.com/repos/kornisb/pancake/milestones{/number}","notifications_url":"https://api.github.com/repos/kornisb/pancake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kornisb/pancake/labels{/name}","releases_url":"https://api.github.com/repos/kornisb/pancake/releases{/id}","deployments_url":"https://api.github.com/repos/kornisb/pancake/deployments","created_at":"2016-03-24T10:14:22Z","updated_at":"2016-03-30T09:03:40Z","pushed_at":"2016-04-25T11:42:50Z","git_url":"git://github.com/kornisb/pancake.git","ssh_url":"git@github.com:kornisb/pancake.git","clone_url":"https://github.com/kornisb/pancake.git","svn_url":"https://github.com/kornisb/pancake","homepage":null,"size":257,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kicsikrumpli:master","ref":"master","sha":"d59b32cc0cf6afbc3371a45a099efb195f1d1360","user":{"login":"kicsikrumpli","id":5749514,"avatar_url":"https://avatars.githubusercontent.com/u/5749514?v=3","gravatar_id":"","url":"https://api.github.com/users/kicsikrumpli","html_url":"https://github.com/kicsikrumpli","followers_url":"https://api.github.com/users/kicsikrumpli/followers","following_url":"https://api.github.com/users/kicsikrumpli/following{/other_user}","gists_url":"https://api.github.com/users/kicsikrumpli/gists{/gist_id}","starred_url":"https://api.github.com/users/kicsikrumpli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kicsikrumpli/subscriptions","organizations_url":"https://api.github.com/users/kicsikrumpli/orgs","repos_url":"https://api.github.com/users/kicsikrumpli/repos","events_url":"https://api.github.com/users/kicsikrumpli/events{/privacy}","received_events_url":"https://api.github.com/users/kicsikrumpli/received_events","type":"User","site_admin":false},"repo":{"id":54632371,"name":"pancake","full_name":"kicsikrumpli/pancake","owner":{"login":"kicsikrumpli","id":5749514,"avatar_url":"https://avatars.githubusercontent.com/u/5749514?v=3","gravatar_id":"","url":"https://api.github.com/users/kicsikrumpli","html_url":"https://github.com/kicsikrumpli","followers_url":"https://api.github.com/users/kicsikrumpli/followers","following_url":"https://api.github.com/users/kicsikrumpli/following{/other_user}","gists_url":"https://api.github.com/users/kicsikrumpli/gists{/gist_id}","starred_url":"https://api.github.com/users/kicsikrumpli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kicsikrumpli/subscriptions","organizations_url":"https://api.github.com/users/kicsikrumpli/orgs","repos_url":"https://api.github.com/users/kicsikrumpli/repos","events_url":"https://api.github.com/users/kicsikrumpli/events{/privacy}","received_events_url":"https://api.github.com/users/kicsikrumpli/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kicsikrumpli/pancake","description":"pancake training project","fork":false,"url":"https://api.github.com/repos/kicsikrumpli/pancake","forks_url":"https://api.github.com/repos/kicsikrumpli/pancake/forks","keys_url":"https://api.github.com/repos/kicsikrumpli/pancake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kicsikrumpli/pancake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kicsikrumpli/pancake/teams","hooks_url":"https://api.github.com/repos/kicsikrumpli/pancake/hooks","issue_events_url":"https://api.github.com/repos/kicsikrumpli/pancake/issues/events{/number}","events_url":"https://api.github.com/repos/kicsikrumpli/pancake/events","assignees_url":"https://api.github.com/repos/kicsikrumpli/pancake/assignees{/user}","branches_url":"https://api.github.com/repos/kicsikrumpli/pancake/branches{/branch}","tags_url":"https://api.github.com/repos/kicsikrumpli/pancake/tags","blobs_url":"https://api.github.com/repos/kicsikrumpli/pancake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kicsikrumpli/pancake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kicsikrumpli/pancake/git/refs{/sha}","trees_url":"https://api.github.com/repos/kicsikrumpli/pancake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kicsikrumpli/pancake/statuses/{sha}","languages_url":"https://api.github.com/repos/kicsikrumpli/pancake/languages","stargazers_url":"https://api.github.com/repos/kicsikrumpli/pancake/stargazers","contributors_url":"https://api.github.com/repos/kicsikrumpli/pancake/contributors","subscribers_url":"https://api.github.com/repos/kicsikrumpli/pancake/subscribers","subscription_url":"https://api.github.com/repos/kicsikrumpli/pancake/subscription","commits_url":"https://api.github.com/repos/kicsikrumpli/pancake/commits{/sha}","git_commits_url":"https://api.github.com/repos/kicsikrumpli/pancake/git/commits{/sha}","comments_url":"https://api.github.com/repos/kicsikrumpli/pancake/comments{/number}","issue_comment_url":"https://api.github.com/repos/kicsikrumpli/pancake/issues/comments{/number}","contents_url":"https://api.github.com/repos/kicsikrumpli/pancake/contents/{+path}","compare_url":"https://api.github.com/repos/kicsikrumpli/pancake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kicsikrumpli/pancake/merges","archive_url":"https://api.github.com/repos/kicsikrumpli/pancake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kicsikrumpli/pancake/downloads","issues_url":"https://api.github.com/repos/kicsikrumpli/pancake/issues{/number}","pulls_url":"https://api.github.com/repos/kicsikrumpli/pancake/pulls{/number}","milestones_url":"https://api.github.com/repos/kicsikrumpli/pancake/milestones{/number}","notifications_url":"https://api.github.com/repos/kicsikrumpli/pancake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kicsikrumpli/pancake/labels{/name}","releases_url":"https://api.github.com/repos/kicsikrumpli/pancake/releases{/id}","deployments_url":"https://api.github.com/repos/kicsikrumpli/pancake/deployments","created_at":"2016-03-24T10:03:27Z","updated_at":"2016-03-30T08:36:30Z","pushed_at":"2016-04-25T11:42:51Z","git_url":"git://github.com/kicsikrumpli/pancake.git","ssh_url":"git@github.com:kicsikrumpli/pancake.git","clone_url":"https://github.com/kicsikrumpli/pancake.git","svn_url":"https://github.com/kicsikrumpli/pancake","homepage":null,"size":70,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kicsikrumpli/pancake/pulls/9"},"html":{"href":"https://github.com/kicsikrumpli/pancake/pull/9"},"issue":{"href":"https://api.github.com/repos/kicsikrumpli/pancake/issues/9"},"comments":{"href":"https://api.github.com/repos/kicsikrumpli/pancake/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/kicsikrumpli/pancake/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/kicsikrumpli/pancake/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kicsikrumpli/pancake/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/kicsikrumpli/pancake/statuses/cbcd708550cd263591a566f97bab18c6109555d4"}}}}