diff --git a/app/src/main/java/org/ntlab/irisclient/EnterRoomActivity.java b/app/src/main/java/org/ntlab/irisclient/EnterRoomActivity.java index 6c9ef0b..3bcc1db 100644 --- a/app/src/main/java/org/ntlab/irisclient/EnterRoomActivity.java +++ b/app/src/main/java/org/ntlab/irisclient/EnterRoomActivity.java @@ -18,6 +18,7 @@ import com.google.android.material.snackbar.Snackbar; import org.ntlab.irisclient.entities.MemberJson; +import org.ntlab.irisclient.entities.RoomJson; import org.ntlab.irisclient.resources.RoomsRest; import java.util.List; @@ -62,10 +63,10 @@ nicknameForm.setError("ニックネームを入力されていません"); roomIdForm.setError("部屋番号を入力されていません"); } else { - Call> call = roomsRest.postMembers(rid,name); - call.enqueue(new Callback>() { + Call call = roomsRest.postMembers(rid,name); + call.enqueue(new Callback() { @Override - public void onResponse(Call> call, Response> response) { + public void onResponse(Call call, Response response) { if(response.isSuccessful()){ Intent intent = new Intent(EnterRoomActivity.this,MemberRoomActivity.class); startActivity(intent); @@ -73,7 +74,7 @@ } @Override - public void onFailure(Call> call, Throwable t) { + public void onFailure(Call call, Throwable t) { } });