Skip to content

Commit

Permalink
api 呼び出しで仮置きパラメータを削除
Browse files Browse the repository at this point in the history
  • Loading branch information
warahiko committed Oct 1, 2020
1 parent a6bf3e2 commit 5574a40
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class MainViewModel : ViewModel() {
get() = _items

fun getAllUsers() {
QiitaUserService().getAllUser(1, 20, object : Callback<Array<User>> {
QiitaUserService().getAllUser(callback = object : Callback<Array<User>> {
override fun onFailure(call: Call<Array<User>>, t: Throwable) {
t.printStackTrace()
}
Expand All @@ -34,7 +34,7 @@ class MainViewModel : ViewModel() {
}

fun getAllItems() {
QiitaItemService().getAllItems(1, 20, "", object : Callback<Array<Item>> {
QiitaItemService().getAllItems(callback = object : Callback<Array<Item>> {
override fun onFailure(call: Call<Array<Item>>, t: Throwable) {
t.printStackTrace()
}
Expand Down

0 comments on commit 5574a40

Please sign in to comment.