diff --git a/app/src/main/java/com/example/citrusclient/viewmodels/BooksViewModel.java b/app/src/main/java/com/example/citrusclient/viewmodels/BooksViewModel.java index 37989ea..cbf3f2a 100644 --- a/app/src/main/java/com/example/citrusclient/viewmodels/BooksViewModel.java +++ b/app/src/main/java/com/example/citrusclient/viewmodels/BooksViewModel.java @@ -25,7 +25,7 @@ private final MutableLiveData publicityLiveData; private final MutableLiveData favoritedLiveData; - public BooksViewModel(MutableLiveData> booksIdLiveData) { + public BooksViewModel() { this.retrofit = new Retrofit.Builder() .baseUrl("http://nitta-lab-www.is.konan-u.ac.jp/citrus/") .addConverterFactory(JacksonConverterFactory.create()) @@ -39,7 +39,6 @@ } public MutableLiveData> getBookLiveData() { return this.booksLiveData;}//本の一覧を返す - //public MutableLiveData> getBooksIdLiveData() {return this.booksIdLiveData;}//本の情報を取得 public MutableLiveData getTitleLiveData() {return this.titleLiveData;}//本のタイトルを返す public MutableLiveData getPublicityLiveData() {return this.publicityLiveData;}//本の公開状態を返す