{"action":"created","comment":{"url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/comments/48105008","id":48105008,"diff_hunk":"@@ -64,14 +80,51 @@ public void setInputNumber(final String inputNumber) {\n     }\n \n     public void convert() {\n+        logger.addLogMessage(convertLogMessage());\n         try {\n             if (isConvertedNumberArabic) {\n                 outputNumber = NumeralConverter.convert(Integer.parseInt(inputNumber));\n             } else {\n                 outputNumber = String.valueOf(NumeralConverter.convert(inputNumber));\n             }\n+            logger.addLogMessage(successfulConvertLogMessage());\n         } catch (Exception e) {\n             errorMessage = \"Illegal input number\";\n+            logger.addLogMessage(failedConvertLogMessage());\n         }\n     }\n+\n+    public List<String> getLogMessages() {\n+        return logger.getLogMessages();\n+    }\n+\n+    private String convertLogMessage() {\n+        return LogMessages.CONVERT_WAS_PRESSED + \"with argument: \" + inputNumber\n+                + \" as \" + inputNumberFormat;\n+    }\n+\n+    private String reverseLogMessage() {\n+        return LogMessages.REVERSE_WAS_PRESSED + \"Current converting direction is from \"\n+                + inputNumberFormat + \" into  \" + outputNumberFormat;\n+    }\n+\n+    private String successfulConvertLogMessage() {\n+        return LogMessages.SUCCESSFUL_CONVERT_OPERATION + \"with result \" + outputNumber\n+                + \" as \" + outputNumberFormat;\n+    }\n+\n+    private String failedConvertLogMessage() {\n+        return LogMessages.FAILED_CONVERT_OPERATION;\n+    }\n+\n+}\n+\n+    final class LogMessages {\n+        public static final String CONVERT_WAS_PRESSED = \"Convert button was pressed \";\n+        public static final String REVERSE_WAS_PRESSED = \"Reverse button was pressed \";","path":"code/garina-anastasia/ViewModel/src/main/java/ru/unn/agile/arabicroman/viewmodel/ArabicRomanConverterViewModel.java","position":87,"original_position":87,"commit_id":"fd254194fe1ffa1b1b2cb535e25ffcee8d606152","original_commit_id":"8e113be13946a7ccfea3a12ac4d8e2dc72398b3b","user":{"login":"dmitrykazanbaev","id":14615396,"avatar_url":"https://avatars.githubusercontent.com/u/14615396?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitrykazanbaev","html_url":"https://github.com/dmitrykazanbaev","followers_url":"https://api.github.com/users/dmitrykazanbaev/followers","following_url":"https://api.github.com/users/dmitrykazanbaev/following{/other_user}","gists_url":"https://api.github.com/users/dmitrykazanbaev/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitrykazanbaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitrykazanbaev/subscriptions","organizations_url":"https://api.github.com/users/dmitrykazanbaev/orgs","repos_url":"https://api.github.com/users/dmitrykazanbaev/repos","events_url":"https://api.github.com/users/dmitrykazanbaev/events{/privacy}","received_events_url":"https://api.github.com/users/dmitrykazanbaev/received_events","type":"User","site_admin":false},"body":"Предлагаю привести контр-пример тогда","created_at":"2015-12-20T16:15:10Z","updated_at":"2015-12-20T16:15:10Z","html_url":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/169#discussion_r48105008","pull_request_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/169","_links":{"self":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/comments/48105008"},"html":{"href":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/169#discussion_r48105008"},"pull_request":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/169"}}},"pull_request":{"url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/169","id":54188802,"html_url":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/169","diff_url":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/169.diff","patch_url":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/169.patch","issue_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/169","number":169,"state":"open","locked":false,"title":"Гарина - лабораторная работа #3","user":{"login":"AnastasiaGarina","id":15309398,"avatar_url":"https://avatars.githubusercontent.com/u/15309398?v=3","gravatar_id":"","url":"https://api.github.com/users/AnastasiaGarina","html_url":"https://github.com/AnastasiaGarina","followers_url":"https://api.github.com/users/AnastasiaGarina/followers","following_url":"https://api.github.com/users/AnastasiaGarina/following{/other_user}","gists_url":"https://api.github.com/users/AnastasiaGarina/gists{/gist_id}","starred_url":"https://api.github.com/users/AnastasiaGarina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnastasiaGarina/subscriptions","organizations_url":"https://api.github.com/users/AnastasiaGarina/orgs","repos_url":"https://api.github.com/users/AnastasiaGarina/repos","events_url":"https://api.github.com/users/AnastasiaGarina/events{/privacy}","received_events_url":"https://api.github.com/users/AnastasiaGarina/received_events","type":"User","site_admin":false},"body":null,"created_at":"2015-12-19T23:20:46Z","updated_at":"2015-12-20T16:15:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9a3cca8c06d57b070f92bca7e77b971b4f06a920","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/169/commits","review_comments_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/169/comments","review_comment_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/169/comments","statuses_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/statuses/fd254194fe1ffa1b1b2cb535e25ffcee8d606152","head":{"label":"AnastasiaGarina:lab3-logger-arabicRomanNumeralConverter","ref":"lab3-logger-arabicRomanNumeralConverter","sha":"fd254194fe1ffa1b1b2cb535e25ffcee8d606152","user":{"login":"AnastasiaGarina","id":15309398,"avatar_url":"https://avatars.githubusercontent.com/u/15309398?v=3","gravatar_id":"","url":"https://api.github.com/users/AnastasiaGarina","html_url":"https://github.com/AnastasiaGarina","followers_url":"https://api.github.com/users/AnastasiaGarina/followers","following_url":"https://api.github.com/users/AnastasiaGarina/following{/other_user}","gists_url":"https://api.github.com/users/AnastasiaGarina/gists{/gist_id}","starred_url":"https://api.github.com/users/AnastasiaGarina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnastasiaGarina/subscriptions","organizations_url":"https://api.github.com/users/AnastasiaGarina/orgs","repos_url":"https://api.github.com/users/AnastasiaGarina/repos","events_url":"https://api.github.com/users/AnastasiaGarina/events{/privacy}","received_events_url":"https://api.github.com/users/AnastasiaGarina/received_events","type":"User","site_admin":false},"repo":{"id":44910077,"name":"agile-course-practice","full_name":"AnastasiaGarina/agile-course-practice","owner":{"login":"AnastasiaGarina","id":15309398,"avatar_url":"https://avatars.githubusercontent.com/u/15309398?v=3","gravatar_id":"","url":"https://api.github.com/users/AnastasiaGarina","html_url":"https://github.com/AnastasiaGarina","followers_url":"https://api.github.com/users/AnastasiaGarina/followers","following_url":"https://api.github.com/users/AnastasiaGarina/following{/other_user}","gists_url":"https://api.github.com/users/AnastasiaGarina/gists{/gist_id}","starred_url":"https://api.github.com/users/AnastasiaGarina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnastasiaGarina/subscriptions","organizations_url":"https://api.github.com/users/AnastasiaGarina/orgs","repos_url":"https://api.github.com/users/AnastasiaGarina/repos","events_url":"https://api.github.com/users/AnastasiaGarina/events{/privacy}","received_events_url":"https://api.github.com/users/AnastasiaGarina/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AnastasiaGarina/agile-course-practice","description":"Проект-шаблон для выполнения лабораторных работ по курсу Agile Development","fork":true,"url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice","forks_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/forks","keys_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/teams","hooks_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/hooks","issue_events_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/issues/events{/number}","events_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/events","assignees_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/assignees{/user}","branches_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/branches{/branch}","tags_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/tags","blobs_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/git/refs{/sha}","trees_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/statuses/{sha}","languages_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/languages","stargazers_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/stargazers","contributors_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/contributors","subscribers_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/subscribers","subscription_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/subscription","commits_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/commits{/sha}","git_commits_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/git/commits{/sha}","comments_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/comments{/number}","issue_comment_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/issues/comments{/number}","contents_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/contents/{+path}","compare_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/merges","archive_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/downloads","issues_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/issues{/number}","pulls_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/pulls{/number}","milestones_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/milestones{/number}","notifications_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/labels{/name}","releases_url":"https://api.github.com/repos/AnastasiaGarina/agile-course-practice/releases{/id}","created_at":"2015-10-25T12:57:04Z","updated_at":"2015-10-25T12:57:06Z","pushed_at":"2015-12-20T11:53:01Z","git_url":"git://github.com/AnastasiaGarina/agile-course-practice.git","ssh_url":"git@github.com:AnastasiaGarina/agile-course-practice.git","clone_url":"https://github.com/AnastasiaGarina/agile-course-practice.git","svn_url":"https://github.com/AnastasiaGarina/agile-course-practice","homepage":"","size":5409,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"UNN-VMK-Software:master","ref":"master","sha":"9d472be6040ec94732277ebb1eacc1686031effb","user":{"login":"UNN-VMK-Software","id":5463209,"avatar_url":"https://avatars.githubusercontent.com/u/5463209?v=3","gravatar_id":"","url":"https://api.github.com/users/UNN-VMK-Software","html_url":"https://github.com/UNN-VMK-Software","followers_url":"https://api.github.com/users/UNN-VMK-Software/followers","following_url":"https://api.github.com/users/UNN-VMK-Software/following{/other_user}","gists_url":"https://api.github.com/users/UNN-VMK-Software/gists{/gist_id}","starred_url":"https://api.github.com/users/UNN-VMK-Software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UNN-VMK-Software/subscriptions","organizations_url":"https://api.github.com/users/UNN-VMK-Software/orgs","repos_url":"https://api.github.com/users/UNN-VMK-Software/repos","events_url":"https://api.github.com/users/UNN-VMK-Software/events{/privacy}","received_events_url":"https://api.github.com/users/UNN-VMK-Software/received_events","type":"Organization","site_admin":false},"repo":{"id":44518750,"name":"agile-course-practice","full_name":"UNN-VMK-Software/agile-course-practice","owner":{"login":"UNN-VMK-Software","id":5463209,"avatar_url":"https://avatars.githubusercontent.com/u/5463209?v=3","gravatar_id":"","url":"https://api.github.com/users/UNN-VMK-Software","html_url":"https://github.com/UNN-VMK-Software","followers_url":"https://api.github.com/users/UNN-VMK-Software/followers","following_url":"https://api.github.com/users/UNN-VMK-Software/following{/other_user}","gists_url":"https://api.github.com/users/UNN-VMK-Software/gists{/gist_id}","starred_url":"https://api.github.com/users/UNN-VMK-Software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UNN-VMK-Software/subscriptions","organizations_url":"https://api.github.com/users/UNN-VMK-Software/orgs","repos_url":"https://api.github.com/users/UNN-VMK-Software/repos","events_url":"https://api.github.com/users/UNN-VMK-Software/events{/privacy}","received_events_url":"https://api.github.com/users/UNN-VMK-Software/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UNN-VMK-Software/agile-course-practice","description":"Проект-шаблон для выполнения лабораторных работ по курсу Agile Development","fork":false,"url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice","forks_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/forks","keys_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/teams","hooks_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/hooks","issue_events_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/events{/number}","events_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/events","assignees_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/assignees{/user}","branches_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/branches{/branch}","tags_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/tags","blobs_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/git/refs{/sha}","trees_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/statuses/{sha}","languages_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/languages","stargazers_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/stargazers","contributors_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/contributors","subscribers_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/subscribers","subscription_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/subscription","commits_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/commits{/sha}","git_commits_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/git/commits{/sha}","comments_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/comments{/number}","issue_comment_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/comments{/number}","contents_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/contents/{+path}","compare_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/merges","archive_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/downloads","issues_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues{/number}","pulls_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls{/number}","milestones_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/milestones{/number}","notifications_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/labels{/name}","releases_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/releases{/id}","created_at":"2015-10-19T07:42:22Z","updated_at":"2015-10-29T19:46:12Z","pushed_at":"2015-12-20T16:11:19Z","git_url":"git://github.com/UNN-VMK-Software/agile-course-practice.git","ssh_url":"git@github.com:UNN-VMK-Software/agile-course-practice.git","clone_url":"https://github.com/UNN-VMK-Software/agile-course-practice.git","svn_url":"https://github.com/UNN-VMK-Software/agile-course-practice","homepage":"","size":5987,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":45,"mirror_url":null,"open_issues_count":20,"forks":45,"open_issues":20,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/169"},"html":{"href":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/169"},"issue":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/169"},"comments":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/169/comments"},"review_comments":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/169/comments"},"review_comment":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/169/commits"},"statuses":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/statuses/fd254194fe1ffa1b1b2cb535e25ffcee8d606152"}}}}