{"action":"closed","issue":{"url":"https://api.github.com/repos/Hetty38/Chat/issues/1","repository_url":"https://api.github.com/repos/Hetty38/Chat","labels_url":"https://api.github.com/repos/Hetty38/Chat/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Hetty38/Chat/issues/1/comments","events_url":"https://api.github.com/repos/Hetty38/Chat/issues/1/events","html_url":"https://github.com/Hetty38/Chat/issues/1","id":430931730,"node_id":"MDU6SXNzdWU0MzA5MzE3MzA=","number":1,"title":"ui","user":{"login":"Sergey34","id":14966950,"node_id":"MDQ6VXNlcjE0OTY2OTUw","avatar_url":"https://avatars2.githubusercontent.com/u/14966950?v=4","gravatar_id":"","url":"https://api.github.com/users/Sergey34","html_url":"https://github.com/Sergey34","followers_url":"https://api.github.com/users/Sergey34/followers","following_url":"https://api.github.com/users/Sergey34/following{/other_user}","gists_url":"https://api.github.com/users/Sergey34/gists{/gist_id}","starred_url":"https://api.github.com/users/Sergey34/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sergey34/subscriptions","organizations_url":"https://api.github.com/users/Sergey34/orgs","repos_url":"https://api.github.com/users/Sergey34/repos","events_url":"https://api.github.com/users/Sergey34/events{/privacy}","received_events_url":"https://api.github.com/users/Sergey34/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-04-09T12:10:17Z","updated_at":"2019-04-11T06:36:14Z","closed_at":"2019-04-11T06:36:14Z","author_association":"NONE","body":"\r\n<code>\r\n\r\n        System.out.print(\"Введите имя:\");\r\n        Scanner scanner = new Scanner(System.in);\r\n        String name = scanner.nextLine();\r\n        ChatClient client = new ChatClient(name, stub);\r\n        while (true) {\r\n            String command = scanner.nextLine();\r\n            switch (command) {\r\n                case \"exist\":\r\n                    client.disconnect();\r\n                    System.exit(0);\r\n                    break;\r\n                case \"connect\":\r\n                    client.connect();\r\n                    break;\r\n                case \"disconnect\":\r\n                    client.disconnect();\r\n                    break;\r\n                case \"send\":\r\n                    client.send();//а в логике метода send в клиенте выяснить тип сообщения и отправить его\r\n                    break;\r\n            }\r\n        }\r\n    }\r\n\r\n</code>"}}
{"actor":{"display_login":"Hetty38"}}