diff --git a/app/src/main/java/com/example/nemophila/viewmodels/ShopsViewModel.java b/app/src/main/java/com/example/nemophila/viewmodels/ShopsViewModel.java index 963034e..addd584 100644 --- a/app/src/main/java/com/example/nemophila/viewmodels/ShopsViewModel.java +++ b/app/src/main/java/com/example/nemophila/viewmodels/ShopsViewModel.java @@ -1,5 +1,6 @@ package com.example.nemophila.viewmodels; +import androidx.lifecycle.LiveData; import androidx.lifecycle.MutableLiveData; import androidx.lifecycle.ViewModel; @@ -32,8 +33,12 @@ this.shopsRest = retrofit.create(ShopsRest.class); } + public LiveData> getMembersLiveData() { + return this.shopsLiveData; + } + // 画面を動かす, 又はGPSが移動する度に呼び出される - public void setViewArea(double ux, double uy, double lx, double ly){ + public void setViewArea(double ux, double uy, double lx, double ly) { // 画面内に収まる範囲の店舗を取得する Call> call = shopsRest.getShops(ux, uy, lx, ly);