diff --git a/app/src/main/java/org/ntlab/irisclient/viewmodels/DrawingStateViewModel.java b/app/src/main/java/org/ntlab/irisclient/viewmodels/DrawingStateViewModel.java index 1c15164..d75c241 100644 --- a/app/src/main/java/org/ntlab/irisclient/viewmodels/DrawingStateViewModel.java +++ b/app/src/main/java/org/ntlab/irisclient/viewmodels/DrawingStateViewModel.java @@ -1,5 +1,8 @@ package org.ntlab.irisclient.viewmodels; +import android.os.Debug; + + import org.ntlab.irisclient.models.DrawingState; import org.ntlab.irisclient.resources.DrawingRest; import org.ntlab.irisclient.resources.RoomsRest; @@ -9,6 +12,7 @@ import androidx.lifecycle.ViewModel; import java.util.List; +import java.util.Timer; import retrofit2.Retrofit; import retrofit2.Call; @@ -16,7 +20,7 @@ import retrofit2.Response; import retrofit2.converter.jackson.JacksonConverterFactory; -public class DrawingStateViewModel extends ViewModel { +public class DrawingStateViewModel extends TimerViewModel { final private MutableLiveData stateMutableLiveData=new MutableLiveData<>(); final private MutableLiveData dnoMutableLiveData=new MutableLiveData<>(); @@ -38,6 +42,14 @@ return this.stateMutableLiveData; } + public void run(){test();} + + + private void test(){ + System.out.print("タイマーのデバッグ"); + } + + public void updateState(String rid) { final RoomsRest roomsRest = retrofit.create(RoomsRest.class);