diff --git a/app/src/main/java/org/ntlab/irisclient/viewmodels/GameViewModel.java b/app/src/main/java/org/ntlab/irisclient/viewmodels/GameViewModel.java index a022885..f16f3c8 100644 --- a/app/src/main/java/org/ntlab/irisclient/viewmodels/GameViewModel.java +++ b/app/src/main/java/org/ntlab/irisclient/viewmodels/GameViewModel.java @@ -75,6 +75,9 @@ //-------------------------------------------------------------- // getter + public LiveData getTurnsLiveData() { + return this.turnsMutableLiveData; + } public LiveData getTurnLiveData() { return this.turnMutableLiveData; } @@ -92,7 +95,7 @@ } //マスターのヒント、最大回答数を送信 - public void sendHint(int tno, String hint, Integer max) { + public void sendHint(String hint, Integer max) { Call call = gameRest.putHint(rid, tno, hint, max); call.enqueue(new Callback() { @@ -252,13 +255,13 @@ // updates @Override public void update() { - //updateTurns(rid); + updateTurns(rid); updateTurn(rid); updateOpens(rid); updateQ(rid); } -/* + //r,bの取得(今どちらのチームかの判別) public void updateTurns(String rid) { final GameRest gameRest = retrofit.create(GameRest.class); @@ -289,7 +292,7 @@ } }); } - */ + //hint,openList,maxの更新 public void updateTurn(String rid) {