diff --git a/app/src/main/java/org/ntlab/irisclient/viewmodels/RoomViewModel.java b/app/src/main/java/org/ntlab/irisclient/viewmodels/RoomViewModel.java index f2ba744..480e7c8 100644 --- a/app/src/main/java/org/ntlab/irisclient/viewmodels/RoomViewModel.java +++ b/app/src/main/java/org/ntlab/irisclient/viewmodels/RoomViewModel.java @@ -59,6 +59,26 @@ } //----------------------------------------------------------------------------- + //Activityでのボタン処理 + //チーム&マスター変更 + public void changeTeamAndMaster(String rid,String nickname,String belongs,Boolean isMaster) { + final RoomsRest roomsRest = retrofit.create(RoomsRest.class); + Call call = roomsRest.putMember(rid,nickname,belongs,isMaster); + + call.enqueue(new Callback() { + @Override + public void onResponse(Call call, Response response) { + if (response.isSuccessful()){ + + } + } + @Override + public void onFailure(Call call, Throwable t) { + } + }); + } + + //----------------------------------------------------------------------------- // updates @Override public void update(){