{"action":"created","comment":{"url":"https://api.github.com/repos/kunokuno/SyuGo/pulls/comments/88594850","pull_request_review_id":9164508,"id":88594850,"diff_hunk":"@@ -18,31 +22,54 @@\n  */\n public class RegActivity extends Activity {\n \n-    Button btn_issue;\n-    Button btn_share;\n-    Button btn_findmode;\n-    EditText id_box;\n-    TextView text_idshow;\n+    private Button btn_issue;       //ID発行ボタン\n+    private Button btn_share;       //ID共有ボタン\n+    private Button btn_findmode;   //検索モードに遷移するボタン\n+    private EditText id_box;        //ユーザ名を入力するbox\n+    private TextView text_idshow;   //サーバで発行されたIDを表示する領域\n+    private String user_name,myID;\n+\n+    private String mac_add;         //Android端末のMacアドレスを保存\n \n     protected void onCreate(Bundle savedInstanceState) {\n         super.onCreate(savedInstanceState);\n         setContentView(R.layout.activity_reg);\n \n+        //xmlファイルとの紐づけ\n         btn_issue = (Button)findViewById(R.id.button_issue);\n         btn_share = (Button)findViewById(R.id.button_share);\n         btn_findmode = (Button)findViewById(R.id.button_findmode);\n         id_box = (EditText)findViewById(R.id.text_id);\n         text_idshow = (TextView)findViewById(R.id.id_show);\n \n+        //各ボタンのClickListenerの宣言\n         btn_issue.setOnClickListener(issListener);\n         btn_share.setOnClickListener(shaListener);\n         btn_findmode.setOnClickListener(findListener);\n     }\n     //ID発行ボタンの処理\n     private View.OnClickListener issListener = new View.OnClickListener() {\n         public void onClick(View v) {\n-            text_idshow.setText(\"r3uhr3\");\n+            user_name = id_box.getText().toString();\n+            WifiManager wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE);\n+            WifiInfo wifiInfo = wifiManager.getConnectionInfo();\n+\n+            mac_add = wifiInfo.getMacAddress();\n+            //mac address 確認用\n+            //text_idshow.setText(mac_add);\n+\n+            HttpComOnRegistor httpComReg = new HttpComOnRegistor(\n+                    new HttpComOnRegistor.AsyncTaskCallback() {\n+                        @Override\n+                        public void postExecute(String result) {\n+                            myID = result;","path":"Syugo/app/src/main/java/jp/enpitsu/paseri/syugo/Registor/RegActivity.java","position":72,"original_position":62,"commit_id":"7a25a68fe5cb8f7403f7f874b35f913a0aea773f","original_commit_id":"a821b982fb07df9ffdf29a303207394b1aed0838","user":{"login":"paselow-I","id":20023736,"avatar_url":"https://avatars.githubusercontent.com/u/20023736?v=3","gravatar_id":"","url":"https://api.github.com/users/paselow-I","html_url":"https://github.com/paselow-I","followers_url":"https://api.github.com/users/paselow-I/followers","following_url":"https://api.github.com/users/paselow-I/following{/other_user}","gists_url":"https://api.github.com/users/paselow-I/gists{/gist_id}","starred_url":"https://api.github.com/users/paselow-I/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paselow-I/subscriptions","organizations_url":"https://api.github.com/users/paselow-I/orgs","repos_url":"https://api.github.com/users/paselow-I/repos","events_url":"https://api.github.com/users/paselow-I/events{/privacy}","received_events_url":"https://api.github.com/users/paselow-I/received_events","type":"User","site_admin":false},"body":"おっけー\r\n確認しました！ありがとう！！\r\n\r\n私からは以上です\r\n問題ないです","created_at":"2016-11-18T03:32:22Z","updated_at":"2016-11-18T03:32:22Z","html_url":"https://github.com/kunokuno/SyuGo/pull/6#discussion_r88594850","pull_request_url":"https://api.github.com/repos/kunokuno/SyuGo/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/kunokuno/SyuGo/pulls/comments/88594850"},"html":{"href":"https://github.com/kunokuno/SyuGo/pull/6#discussion_r88594850"},"pull_request":{"href":"https://api.github.com/repos/kunokuno/SyuGo/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/kunokuno/SyuGo/pulls/6","id":94250770,"html_url":"https://github.com/kunokuno/SyuGo/pull/6","diff_url":"https://github.com/kunokuno/SyuGo/pull/6.diff","patch_url":"https://github.com/kunokuno/SyuGo/pull/6.patch","issue_url":"https://api.github.com/repos/kunokuno/SyuGo/issues/6","number":6,"state":"open","locked":false,"title":"[ユーザ登録画面]HTTP通信","user":{"login":"Cathy-toyama","id":19316642,"avatar_url":"https://avatars.githubusercontent.com/u/19316642?v=3","gravatar_id":"","url":"https://api.github.com/users/Cathy-toyama","html_url":"https://github.com/Cathy-toyama","followers_url":"https://api.github.com/users/Cathy-toyama/followers","following_url":"https://api.github.com/users/Cathy-toyama/following{/other_user}","gists_url":"https://api.github.com/users/Cathy-toyama/gists{/gist_id}","starred_url":"https://api.github.com/users/Cathy-toyama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cathy-toyama/subscriptions","organizations_url":"https://api.github.com/users/Cathy-toyama/orgs","repos_url":"https://api.github.com/users/Cathy-toyama/repos","events_url":"https://api.github.com/users/Cathy-toyama/events{/privacy}","received_events_url":"https://api.github.com/users/Cathy-toyama/received_events","type":"User","site_admin":false},"body":"ユーザ登録画面でのサーバとのやりとり部分を実装しました．\r\n\r\n入力されたユーザ名と端末のMacAddressをサーバに渡して，IDを取得し画面表示します．\r\n取得したIDはAR(レーダー)画面でも使えるようにkey\"myID\"でRaderActivityに渡してます．\r\n\r\n既に登録されてるユーザ名を入力してID発行ボタンを押しても，ID表示用の部分には何も表示されないので，このときの「別のユーザ名を入力してね」メッセージを出さなきゃいけないんですけど，それはまだです．\r\n","created_at":"2016-11-17T21:07:51Z","updated_at":"2016-11-18T03:32:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2915ba152439e10b2b778f8c4fcf1306e92566e3","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/kunokuno/SyuGo/pulls/6/commits","review_comments_url":"https://api.github.com/repos/kunokuno/SyuGo/pulls/6/comments","review_comment_url":"https://api.github.com/repos/kunokuno/SyuGo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kunokuno/SyuGo/issues/6/comments","statuses_url":"https://api.github.com/repos/kunokuno/SyuGo/statuses/7a25a68fe5cb8f7403f7f874b35f913a0aea773f","head":{"label":"kunokuno:feature_RegFunction_cathy","ref":"feature_RegFunction_cathy","sha":"7a25a68fe5cb8f7403f7f874b35f913a0aea773f","user":{"login":"kunokuno","id":12709125,"avatar_url":"https://avatars.githubusercontent.com/u/12709125?v=3","gravatar_id":"","url":"https://api.github.com/users/kunokuno","html_url":"https://github.com/kunokuno","followers_url":"https://api.github.com/users/kunokuno/followers","following_url":"https://api.github.com/users/kunokuno/following{/other_user}","gists_url":"https://api.github.com/users/kunokuno/gists{/gist_id}","starred_url":"https://api.github.com/users/kunokuno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kunokuno/subscriptions","organizations_url":"https://api.github.com/users/kunokuno/orgs","repos_url":"https://api.github.com/users/kunokuno/repos","events_url":"https://api.github.com/users/kunokuno/events{/privacy}","received_events_url":"https://api.github.com/users/kunokuno/received_events","type":"User","site_admin":false},"repo":{"id":66277300,"name":"SyuGo","full_name":"kunokuno/SyuGo","owner":{"login":"kunokuno","id":12709125,"avatar_url":"https://avatars.githubusercontent.com/u/12709125?v=3","gravatar_id":"","url":"https://api.github.com/users/kunokuno","html_url":"https://github.com/kunokuno","followers_url":"https://api.github.com/users/kunokuno/followers","following_url":"https://api.github.com/users/kunokuno/following{/other_user}","gists_url":"https://api.github.com/users/kunokuno/gists{/gist_id}","starred_url":"https://api.github.com/users/kunokuno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kunokuno/subscriptions","organizations_url":"https://api.github.com/users/kunokuno/orgs","repos_url":"https://api.github.com/users/kunokuno/repos","events_url":"https://api.github.com/users/kunokuno/events{/privacy}","received_events_url":"https://api.github.com/users/kunokuno/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kunokuno/SyuGo","description":"待ち合わせ相手を探すアプリ-enpit2016","fork":false,"url":"https://api.github.com/repos/kunokuno/SyuGo","forks_url":"https://api.github.com/repos/kunokuno/SyuGo/forks","keys_url":"https://api.github.com/repos/kunokuno/SyuGo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kunokuno/SyuGo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kunokuno/SyuGo/teams","hooks_url":"https://api.github.com/repos/kunokuno/SyuGo/hooks","issue_events_url":"https://api.github.com/repos/kunokuno/SyuGo/issues/events{/number}","events_url":"https://api.github.com/repos/kunokuno/SyuGo/events","assignees_url":"https://api.github.com/repos/kunokuno/SyuGo/assignees{/user}","branches_url":"https://api.github.com/repos/kunokuno/SyuGo/branches{/branch}","tags_url":"https://api.github.com/repos/kunokuno/SyuGo/tags","blobs_url":"https://api.github.com/repos/kunokuno/SyuGo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kunokuno/SyuGo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kunokuno/SyuGo/git/refs{/sha}","trees_url":"https://api.github.com/repos/kunokuno/SyuGo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kunokuno/SyuGo/statuses/{sha}","languages_url":"https://api.github.com/repos/kunokuno/SyuGo/languages","stargazers_url":"https://api.github.com/repos/kunokuno/SyuGo/stargazers","contributors_url":"https://api.github.com/repos/kunokuno/SyuGo/contributors","subscribers_url":"https://api.github.com/repos/kunokuno/SyuGo/subscribers","subscription_url":"https://api.github.com/repos/kunokuno/SyuGo/subscription","commits_url":"https://api.github.com/repos/kunokuno/SyuGo/commits{/sha}","git_commits_url":"https://api.github.com/repos/kunokuno/SyuGo/git/commits{/sha}","comments_url":"https://api.github.com/repos/kunokuno/SyuGo/comments{/number}","issue_comment_url":"https://api.github.com/repos/kunokuno/SyuGo/issues/comments{/number}","contents_url":"https://api.github.com/repos/kunokuno/SyuGo/contents/{+path}","compare_url":"https://api.github.com/repos/kunokuno/SyuGo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kunokuno/SyuGo/merges","archive_url":"https://api.github.com/repos/kunokuno/SyuGo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kunokuno/SyuGo/downloads","issues_url":"https://api.github.com/repos/kunokuno/SyuGo/issues{/number}","pulls_url":"https://api.github.com/repos/kunokuno/SyuGo/pulls{/number}","milestones_url":"https://api.github.com/repos/kunokuno/SyuGo/milestones{/number}","notifications_url":"https://api.github.com/repos/kunokuno/SyuGo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kunokuno/SyuGo/labels{/name}","releases_url":"https://api.github.com/repos/kunokuno/SyuGo/releases{/id}","deployments_url":"https://api.github.com/repos/kunokuno/SyuGo/deployments","created_at":"2016-08-22T13:57:56Z","updated_at":"2016-11-01T06:02:27Z","pushed_at":"2016-11-18T03:09:16Z","git_url":"git://github.com/kunokuno/SyuGo.git","ssh_url":"git@github.com:kunokuno/SyuGo.git","clone_url":"https://github.com/kunokuno/SyuGo.git","svn_url":"https://github.com/kunokuno/SyuGo","homepage":"","size":7052,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"kunokuno:develop","ref":"develop","sha":"f8a591a9a5cb6fcd36f8d11f4cff33cbd97e3160","user":{"login":"kunokuno","id":12709125,"avatar_url":"https://avatars.githubusercontent.com/u/12709125?v=3","gravatar_id":"","url":"https://api.github.com/users/kunokuno","html_url":"https://github.com/kunokuno","followers_url":"https://api.github.com/users/kunokuno/followers","following_url":"https://api.github.com/users/kunokuno/following{/other_user}","gists_url":"https://api.github.com/users/kunokuno/gists{/gist_id}","starred_url":"https://api.github.com/users/kunokuno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kunokuno/subscriptions","organizations_url":"https://api.github.com/users/kunokuno/orgs","repos_url":"https://api.github.com/users/kunokuno/repos","events_url":"https://api.github.com/users/kunokuno/events{/privacy}","received_events_url":"https://api.github.com/users/kunokuno/received_events","type":"User","site_admin":false},"repo":{"id":66277300,"name":"SyuGo","full_name":"kunokuno/SyuGo","owner":{"login":"kunokuno","id":12709125,"avatar_url":"https://avatars.githubusercontent.com/u/12709125?v=3","gravatar_id":"","url":"https://api.github.com/users/kunokuno","html_url":"https://github.com/kunokuno","followers_url":"https://api.github.com/users/kunokuno/followers","following_url":"https://api.github.com/users/kunokuno/following{/other_user}","gists_url":"https://api.github.com/users/kunokuno/gists{/gist_id}","starred_url":"https://api.github.com/users/kunokuno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kunokuno/subscriptions","organizations_url":"https://api.github.com/users/kunokuno/orgs","repos_url":"https://api.github.com/users/kunokuno/repos","events_url":"https://api.github.com/users/kunokuno/events{/privacy}","received_events_url":"https://api.github.com/users/kunokuno/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kunokuno/SyuGo","description":"待ち合わせ相手を探すアプリ-enpit2016","fork":false,"url":"https://api.github.com/repos/kunokuno/SyuGo","forks_url":"https://api.github.com/repos/kunokuno/SyuGo/forks","keys_url":"https://api.github.com/repos/kunokuno/SyuGo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kunokuno/SyuGo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kunokuno/SyuGo/teams","hooks_url":"https://api.github.com/repos/kunokuno/SyuGo/hooks","issue_events_url":"https://api.github.com/repos/kunokuno/SyuGo/issues/events{/number}","events_url":"https://api.github.com/repos/kunokuno/SyuGo/events","assignees_url":"https://api.github.com/repos/kunokuno/SyuGo/assignees{/user}","branches_url":"https://api.github.com/repos/kunokuno/SyuGo/branches{/branch}","tags_url":"https://api.github.com/repos/kunokuno/SyuGo/tags","blobs_url":"https://api.github.com/repos/kunokuno/SyuGo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kunokuno/SyuGo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kunokuno/SyuGo/git/refs{/sha}","trees_url":"https://api.github.com/repos/kunokuno/SyuGo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kunokuno/SyuGo/statuses/{sha}","languages_url":"https://api.github.com/repos/kunokuno/SyuGo/languages","stargazers_url":"https://api.github.com/repos/kunokuno/SyuGo/stargazers","contributors_url":"https://api.github.com/repos/kunokuno/SyuGo/contributors","subscribers_url":"https://api.github.com/repos/kunokuno/SyuGo/subscribers","subscription_url":"https://api.github.com/repos/kunokuno/SyuGo/subscription","commits_url":"https://api.github.com/repos/kunokuno/SyuGo/commits{/sha}","git_commits_url":"https://api.github.com/repos/kunokuno/SyuGo/git/commits{/sha}","comments_url":"https://api.github.com/repos/kunokuno/SyuGo/comments{/number}","issue_comment_url":"https://api.github.com/repos/kunokuno/SyuGo/issues/comments{/number}","contents_url":"https://api.github.com/repos/kunokuno/SyuGo/contents/{+path}","compare_url":"https://api.github.com/repos/kunokuno/SyuGo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kunokuno/SyuGo/merges","archive_url":"https://api.github.com/repos/kunokuno/SyuGo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kunokuno/SyuGo/downloads","issues_url":"https://api.github.com/repos/kunokuno/SyuGo/issues{/number}","pulls_url":"https://api.github.com/repos/kunokuno/SyuGo/pulls{/number}","milestones_url":"https://api.github.com/repos/kunokuno/SyuGo/milestones{/number}","notifications_url":"https://api.github.com/repos/kunokuno/SyuGo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kunokuno/SyuGo/labels{/name}","releases_url":"https://api.github.com/repos/kunokuno/SyuGo/releases{/id}","deployments_url":"https://api.github.com/repos/kunokuno/SyuGo/deployments","created_at":"2016-08-22T13:57:56Z","updated_at":"2016-11-01T06:02:27Z","pushed_at":"2016-11-18T03:09:16Z","git_url":"git://github.com/kunokuno/SyuGo.git","ssh_url":"git@github.com:kunokuno/SyuGo.git","clone_url":"https://github.com/kunokuno/SyuGo.git","svn_url":"https://github.com/kunokuno/SyuGo","homepage":"","size":7052,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/kunokuno/SyuGo/pulls/6"},"html":{"href":"https://github.com/kunokuno/SyuGo/pull/6"},"issue":{"href":"https://api.github.com/repos/kunokuno/SyuGo/issues/6"},"comments":{"href":"https://api.github.com/repos/kunokuno/SyuGo/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/kunokuno/SyuGo/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/kunokuno/SyuGo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kunokuno/SyuGo/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/kunokuno/SyuGo/statuses/7a25a68fe5cb8f7403f7f874b35f913a0aea773f"}}}}
{"actor":{"display_login":"paselow-I"}}