| |
---|
| | public void onResponse(Call<List<Member>> call, Response<List<Member>> response) { |
---|
| | if (response.isSuccessful()){ |
---|
| | System.out.println("通信成功"); |
---|
| | ((Iris) getApplication()).setMemberList(response.body()); |
---|
| | Intent intent = new Intent(TestGameActivity.this, GameMasterActivity.class); |
---|
| | startActivity(intent); |
---|
| | } |
---|
| | } |
---|
| | @Override |
---|
| | public void onFailure(Call<List<Member>> call, Throwable t) { |
---|
| | System.out.println("通信失敗"); |
---|
| | System.out.println(t); |
---|
| | } |
---|
| | }); |
---|
| | |
---|
| | Intent intent = new Intent(TestGameActivity.this, GameMasterActivity.class); |
---|
| | startActivity(intent); |
---|
| | } |
---|
| | }); |
---|
| | |
---|
| | //RedAgentとして参加 |
---|
| |
---|
| | public void onResponse(Call<List<Member>> call, Response<List<Member>> response) { |
---|
| | if (response.isSuccessful()){ |
---|
| | System.out.println("通信成功:createDrawTest"); |
---|
| | ((Iris) getApplication()).setMemberList(response.body()); |
---|
| | Intent intent = new Intent(TestGameActivity.this, GameMemberActivity.class); |
---|
| | startActivity(intent); |
---|
| | } |
---|
| | } |
---|
| | @Override |
---|
| | public void onFailure(Call<List<Member>> call, Throwable t) { |
---|
| | System.out.println("通信失敗:createDrawTest"); |
---|
| | System.out.println(t); |
---|
| | } |
---|
| | }); |
---|
| | |
---|
| | Intent intent = new Intent(TestGameActivity.this, GameMemberActivity.class); |
---|
| | startActivity(intent); |
---|
| | } |
---|
| | }); |
---|
| | |
---|
| | //BlueSpyとして参加 |
---|
| |
---|
| | public void onResponse(Call<List<Member>> call, Response<List<Member>> response) { |
---|
| | if (response.isSuccessful()){ |
---|
| | System.out.println("通信成功:createDrawTest"); |
---|
| | ((Iris) getApplication()).setMemberList(response.body()); |
---|
| | Intent intent = new Intent(TestGameActivity.this, GameMasterActivity.class); |
---|
| | startActivity(intent); |
---|
| | } |
---|
| | } |
---|
| | @Override |
---|
| | public void onFailure(Call<List<Member>> call, Throwable t) { |
---|
| | System.out.println("通信失敗:createDrawTest"); |
---|
| | System.out.println(t); |
---|
| | } |
---|
| | }); |
---|
| | |
---|
| | Intent intent = new Intent(TestGameActivity.this, GameMasterActivity.class); |
---|
| | startActivity(intent); |
---|
| | } |
---|
| | }); |
---|
| | |
---|
| | //BlueAgentとして参加 |
---|
| |
---|
| | public void onResponse(Call<List<Member>> call, Response<List<Member>> response) { |
---|
| | if (response.isSuccessful()){ |
---|
| | System.out.println("通信成功:createDrawTest"); |
---|
| | ((Iris) getApplication()).setMemberList(response.body()); |
---|
| | Intent intent = new Intent(TestGameActivity.this, GameMemberActivity.class); |
---|
| | startActivity(intent); |
---|
| | } |
---|
| | } |
---|
| | @Override |
---|
| | public void onFailure(Call<List<Member>> call, Throwable t) { |
---|
| | System.out.println("通信失敗:createDrawTest"); |
---|
| | System.out.println(t); |
---|
| | } |
---|
| | }); |
---|
| | |
---|
| | Intent intent = new Intent(TestGameActivity.this, GameMemberActivity.class); |
---|
| | startActivity(intent); |
---|
| | } |
---|
| | }); |
---|
| | |
---|
| | //backボタン |
---|
| |
---|
| | |