Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alrajdev authored Jan 30, 2022
1 parent cb823f2 commit af85cc8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ fun getUser(): SimpleCall<List<User>>
Use single function callback: **`SimpleCallback`**
`SimpleCallback.onResult()`
```kotlin
getUser().enqueue { response, exception, call ->
// handle exception and response
}
getUser().enqueue { response, exception, call ->
// handle exception and response
}
```
`SimpleCallback` gives 3 parameters:

Expand Down Expand Up @@ -83,8 +83,8 @@ val retrofit = Retrofit.Builder()

You can also include or exclude the default conditions for individual calls
```kotlin
getUser().exclude(NULL_DATA).enqueue {}
getUser().include(NULL_DATA).enqueue {}
getUser().exclude(NULL_DATA).enqueue {}
getUser().include(NULL_DATA).enqueue {}
```

MultipleCall:
Expand Down

0 comments on commit af85cc8

Please sign in to comment.