{"action":"created","comment":{"url":"https://api.github.com/repos/ultra-sw/its/pulls/comments/150393141","pull_request_review_id":75941688,"id":150393141,"diff_hunk":"@@ -0,0 +1,20 @@\n+package ru.ultrasoftware.its.domain; \r\n+\r\n+import java.util.List; \r\n+\r\n+import com.fasterxml.jackson.annotation.JsonProperty; \r\n+\r\n+public class OtrsTickets { \r\n+\r\n+@JsonProperty(\"TicketID\") \r\n+private List ticket; \r\n+\r\n+public Object getTicket(int i) { \r\n+return ticket.get(i); \r\n+} \r\n+\r\n+public int ticketNumber() { ; \r\n+return ticket.size(); \r\n+} \r\n+ \r","path":"src/main/java/ru/ultrasoftware/its/domain/OtrsTickets.java","position":19,"original_position":19,"commit_id":"198157e15580219227c5892199e0552ca6348cca","original_commit_id":"198157e15580219227c5892199e0552ca6348cca","user":{"login":"perchits","id":1033493,"avatar_url":"https://avatars2.githubusercontent.com/u/1033493?v=4","gravatar_id":"","url":"https://api.github.com/users/perchits","html_url":"https://github.com/perchits","followers_url":"https://api.github.com/users/perchits/followers","following_url":"https://api.github.com/users/perchits/following{/other_user}","gists_url":"https://api.github.com/users/perchits/gists{/gist_id}","starred_url":"https://api.github.com/users/perchits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perchits/subscriptions","organizations_url":"https://api.github.com/users/perchits/orgs","repos_url":"https://api.github.com/users/perchits/repos","events_url":"https://api.github.com/users/perchits/events{/privacy}","received_events_url":"https://api.github.com/users/perchits/received_events","type":"User","site_admin":false},"body":"методы getTicket() и ticketNumber() не нужны. Нужно просто сделать метод, возвращающий лист тикетов и все. А в месте вызова пользоваться этим листом будет куда удобнее.","created_at":"2017-11-11T20:46:38Z","updated_at":"2017-11-11T20:46:38Z","html_url":"https://github.com/ultra-sw/its/pull/21#discussion_r150393141","pull_request_url":"https://api.github.com/repos/ultra-sw/its/pulls/21","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/ultra-sw/its/pulls/comments/150393141"},"html":{"href":"https://github.com/ultra-sw/its/pull/21#discussion_r150393141"},"pull_request":{"href":"https://api.github.com/repos/ultra-sw/its/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/ultra-sw/its/pulls/21","id":152051977,"html_url":"https://github.com/ultra-sw/its/pull/21","diff_url":"https://github.com/ultra-sw/its/pull/21.diff","patch_url":"https://github.com/ultra-sw/its/pull/21.patch","issue_url":"https://api.github.com/repos/ultra-sw/its/issues/21","number":21,"state":"open","locked":false,"title":"Роль при авторизации и получение инфы о сессии и тикетах","user":{"login":"Pelmanable","id":31858728,"avatar_url":"https://avatars2.githubusercontent.com/u/31858728?v=4","gravatar_id":"","url":"https://api.github.com/users/Pelmanable","html_url":"https://github.com/Pelmanable","followers_url":"https://api.github.com/users/Pelmanable/followers","following_url":"https://api.github.com/users/Pelmanable/following{/other_user}","gists_url":"https://api.github.com/users/Pelmanable/gists{/gist_id}","starred_url":"https://api.github.com/users/Pelmanable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pelmanable/subscriptions","organizations_url":"https://api.github.com/users/Pelmanable/orgs","repos_url":"https://api.github.com/users/Pelmanable/repos","events_url":"https://api.github.com/users/Pelmanable/events{/privacy}","received_events_url":"https://api.github.com/users/Pelmanable/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-11-11T10:30:02Z","updated_at":"2017-11-11T20:46:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"be4d9bb337bd65983163733a9547580fd8b0ca2b","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/ultra-sw/its/pulls/21/commits","review_comments_url":"https://api.github.com/repos/ultra-sw/its/pulls/21/comments","review_comment_url":"https://api.github.com/repos/ultra-sw/its/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ultra-sw/its/issues/21/comments","statuses_url":"https://api.github.com/repos/ultra-sw/its/statuses/198157e15580219227c5892199e0552ca6348cca","head":{"label":"ultra-sw:ArrayJson","ref":"ArrayJson","sha":"198157e15580219227c5892199e0552ca6348cca","user":{"login":"ultra-sw","id":31777382,"avatar_url":"https://avatars1.githubusercontent.com/u/31777382?v=4","gravatar_id":"","url":"https://api.github.com/users/ultra-sw","html_url":"https://github.com/ultra-sw","followers_url":"https://api.github.com/users/ultra-sw/followers","following_url":"https://api.github.com/users/ultra-sw/following{/other_user}","gists_url":"https://api.github.com/users/ultra-sw/gists{/gist_id}","starred_url":"https://api.github.com/users/ultra-sw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ultra-sw/subscriptions","organizations_url":"https://api.github.com/users/ultra-sw/orgs","repos_url":"https://api.github.com/users/ultra-sw/repos","events_url":"https://api.github.com/users/ultra-sw/events{/privacy}","received_events_url":"https://api.github.com/users/ultra-sw/received_events","type":"Organization","site_admin":false},"repo":{"id":102895864,"name":"its","full_name":"ultra-sw/its","owner":{"login":"ultra-sw","id":31777382,"avatar_url":"https://avatars1.githubusercontent.com/u/31777382?v=4","gravatar_id":"","url":"https://api.github.com/users/ultra-sw","html_url":"https://github.com/ultra-sw","followers_url":"https://api.github.com/users/ultra-sw/followers","following_url":"https://api.github.com/users/ultra-sw/following{/other_user}","gists_url":"https://api.github.com/users/ultra-sw/gists{/gist_id}","starred_url":"https://api.github.com/users/ultra-sw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ultra-sw/subscriptions","organizations_url":"https://api.github.com/users/ultra-sw/orgs","repos_url":"https://api.github.com/users/ultra-sw/repos","events_url":"https://api.github.com/users/ultra-sw/events{/privacy}","received_events_url":"https://api.github.com/users/ultra-sw/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ultra-sw/its","description":"Integral Technical Support","fork":false,"url":"https://api.github.com/repos/ultra-sw/its","forks_url":"https://api.github.com/repos/ultra-sw/its/forks","keys_url":"https://api.github.com/repos/ultra-sw/its/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ultra-sw/its/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ultra-sw/its/teams","hooks_url":"https://api.github.com/repos/ultra-sw/its/hooks","issue_events_url":"https://api.github.com/repos/ultra-sw/its/issues/events{/number}","events_url":"https://api.github.com/repos/ultra-sw/its/events","assignees_url":"https://api.github.com/repos/ultra-sw/its/assignees{/user}","branches_url":"https://api.github.com/repos/ultra-sw/its/branches{/branch}","tags_url":"https://api.github.com/repos/ultra-sw/its/tags","blobs_url":"https://api.github.com/repos/ultra-sw/its/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ultra-sw/its/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ultra-sw/its/git/refs{/sha}","trees_url":"https://api.github.com/repos/ultra-sw/its/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ultra-sw/its/statuses/{sha}","languages_url":"https://api.github.com/repos/ultra-sw/its/languages","stargazers_url":"https://api.github.com/repos/ultra-sw/its/stargazers","contributors_url":"https://api.github.com/repos/ultra-sw/its/contributors","subscribers_url":"https://api.github.com/repos/ultra-sw/its/subscribers","subscription_url":"https://api.github.com/repos/ultra-sw/its/subscription","commits_url":"https://api.github.com/repos/ultra-sw/its/commits{/sha}","git_commits_url":"https://api.github.com/repos/ultra-sw/its/git/commits{/sha}","comments_url":"https://api.github.com/repos/ultra-sw/its/comments{/number}","issue_comment_url":"https://api.github.com/repos/ultra-sw/its/issues/comments{/number}","contents_url":"https://api.github.com/repos/ultra-sw/its/contents/{+path}","compare_url":"https://api.github.com/repos/ultra-sw/its/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ultra-sw/its/merges","archive_url":"https://api.github.com/repos/ultra-sw/its/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ultra-sw/its/downloads","issues_url":"https://api.github.com/repos/ultra-sw/its/issues{/number}","pulls_url":"https://api.github.com/repos/ultra-sw/its/pulls{/number}","milestones_url":"https://api.github.com/repos/ultra-sw/its/milestones{/number}","notifications_url":"https://api.github.com/repos/ultra-sw/its/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ultra-sw/its/labels{/name}","releases_url":"https://api.github.com/repos/ultra-sw/its/releases{/id}","deployments_url":"https://api.github.com/repos/ultra-sw/its/deployments","created_at":"2017-09-08T19:10:53Z","updated_at":"2017-09-08T19:10:53Z","pushed_at":"2017-11-11T10:30:02Z","git_url":"git://github.com/ultra-sw/its.git","ssh_url":"git@github.com:ultra-sw/its.git","clone_url":"https://github.com/ultra-sw/its.git","svn_url":"https://github.com/ultra-sw/its","homepage":null,"size":84,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":11,"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"base":{"label":"ultra-sw:develop","ref":"develop","sha":"80f07b13639ab96a73b358be68a0c59b615f554e","user":{"login":"ultra-sw","id":31777382,"avatar_url":"https://avatars1.githubusercontent.com/u/31777382?v=4","gravatar_id":"","url":"https://api.github.com/users/ultra-sw","html_url":"https://github.com/ultra-sw","followers_url":"https://api.github.com/users/ultra-sw/followers","following_url":"https://api.github.com/users/ultra-sw/following{/other_user}","gists_url":"https://api.github.com/users/ultra-sw/gists{/gist_id}","starred_url":"https://api.github.com/users/ultra-sw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ultra-sw/subscriptions","organizations_url":"https://api.github.com/users/ultra-sw/orgs","repos_url":"https://api.github.com/users/ultra-sw/repos","events_url":"https://api.github.com/users/ultra-sw/events{/privacy}","received_events_url":"https://api.github.com/users/ultra-sw/received_events","type":"Organization","site_admin":false},"repo":{"id":102895864,"name":"its","full_name":"ultra-sw/its","owner":{"login":"ultra-sw","id":31777382,"avatar_url":"https://avatars1.githubusercontent.com/u/31777382?v=4","gravatar_id":"","url":"https://api.github.com/users/ultra-sw","html_url":"https://github.com/ultra-sw","followers_url":"https://api.github.com/users/ultra-sw/followers","following_url":"https://api.github.com/users/ultra-sw/following{/other_user}","gists_url":"https://api.github.com/users/ultra-sw/gists{/gist_id}","starred_url":"https://api.github.com/users/ultra-sw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ultra-sw/subscriptions","organizations_url":"https://api.github.com/users/ultra-sw/orgs","repos_url":"https://api.github.com/users/ultra-sw/repos","events_url":"https://api.github.com/users/ultra-sw/events{/privacy}","received_events_url":"https://api.github.com/users/ultra-sw/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ultra-sw/its","description":"Integral Technical Support","fork":false,"url":"https://api.github.com/repos/ultra-sw/its","forks_url":"https://api.github.com/repos/ultra-sw/its/forks","keys_url":"https://api.github.com/repos/ultra-sw/its/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ultra-sw/its/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ultra-sw/its/teams","hooks_url":"https://api.github.com/repos/ultra-sw/its/hooks","issue_events_url":"https://api.github.com/repos/ultra-sw/its/issues/events{/number}","events_url":"https://api.github.com/repos/ultra-sw/its/events","assignees_url":"https://api.github.com/repos/ultra-sw/its/assignees{/user}","branches_url":"https://api.github.com/repos/ultra-sw/its/branches{/branch}","tags_url":"https://api.github.com/repos/ultra-sw/its/tags","blobs_url":"https://api.github.com/repos/ultra-sw/its/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ultra-sw/its/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ultra-sw/its/git/refs{/sha}","trees_url":"https://api.github.com/repos/ultra-sw/its/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ultra-sw/its/statuses/{sha}","languages_url":"https://api.github.com/repos/ultra-sw/its/languages","stargazers_url":"https://api.github.com/repos/ultra-sw/its/stargazers","contributors_url":"https://api.github.com/repos/ultra-sw/its/contributors","subscribers_url":"https://api.github.com/repos/ultra-sw/its/subscribers","subscription_url":"https://api.github.com/repos/ultra-sw/its/subscription","commits_url":"https://api.github.com/repos/ultra-sw/its/commits{/sha}","git_commits_url":"https://api.github.com/repos/ultra-sw/its/git/commits{/sha}","comments_url":"https://api.github.com/repos/ultra-sw/its/comments{/number}","issue_comment_url":"https://api.github.com/repos/ultra-sw/its/issues/comments{/number}","contents_url":"https://api.github.com/repos/ultra-sw/its/contents/{+path}","compare_url":"https://api.github.com/repos/ultra-sw/its/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ultra-sw/its/merges","archive_url":"https://api.github.com/repos/ultra-sw/its/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ultra-sw/its/downloads","issues_url":"https://api.github.com/repos/ultra-sw/its/issues{/number}","pulls_url":"https://api.github.com/repos/ultra-sw/its/pulls{/number}","milestones_url":"https://api.github.com/repos/ultra-sw/its/milestones{/number}","notifications_url":"https://api.github.com/repos/ultra-sw/its/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ultra-sw/its/labels{/name}","releases_url":"https://api.github.com/repos/ultra-sw/its/releases{/id}","deployments_url":"https://api.github.com/repos/ultra-sw/its/deployments","created_at":"2017-09-08T19:10:53Z","updated_at":"2017-09-08T19:10:53Z","pushed_at":"2017-11-11T10:30:02Z","git_url":"git://github.com/ultra-sw/its.git","ssh_url":"git@github.com:ultra-sw/its.git","clone_url":"https://github.com/ultra-sw/its.git","svn_url":"https://github.com/ultra-sw/its","homepage":null,"size":84,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":11,"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ultra-sw/its/pulls/21"},"html":{"href":"https://github.com/ultra-sw/its/pull/21"},"issue":{"href":"https://api.github.com/repos/ultra-sw/its/issues/21"},"comments":{"href":"https://api.github.com/repos/ultra-sw/its/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/ultra-sw/its/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/ultra-sw/its/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ultra-sw/its/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/ultra-sw/its/statuses/198157e15580219227c5892199e0552ca6348cca"}},"author_association":"NONE"}}
{"actor":{"display_login":"perchits"}}