Skip to content

Commit

Permalink
✨ :Add GithubApi to EventsViewModel
Browse files Browse the repository at this point in the history
  • Loading branch information
ShoMasegi committed Dec 4, 2019
1 parent 7cae5cd commit 507025a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ class EventsFragment : Fragment() {
.inject(this)

Log.d("Debug","ViewModel: $viewModel")
Log.d("Debug","ViewModel.GithubAPI: ${viewModel.githubApi}")
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package com.sho.masegi.tutorial.ui.events

import androidx.lifecycle.ViewModel
import com.sho.masegi.network.GitHubApi
import javax.inject.Inject

class EventsViewModel @Inject constructor() : ViewModel()
class EventsViewModel @Inject constructor(
val githubApi: GitHubApi
) : ViewModel()

0 comments on commit 507025a

Please sign in to comment.